<UserControl x:Class="NEIntelligentControl2.Views.Infos.SUN2000InfoTag" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:NEIntelligentControl2.Views.Infos" mc:Ignorable="d" d:DesignHeight="50" d:DesignWidth="158" Margin="0,6,0,0"> <Border CornerRadius="7" Background="#FF232D38" MinHeight="41"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="1.2*"/> <ColumnDefinition/> </Grid.ColumnDefinitions> <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=Info.Name}" VerticalAlignment="Center" Foreground="#FFD1D1D1" FontSize="16" Margin="10" HorizontalAlignment="Left"/> <TextBlock Grid.Column="1" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=P}" Foreground="WhiteSmoke" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center"/> <TextBlock Grid.Column="2" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=I}" VerticalAlignment="Center" Foreground="#FF0777D8" FontSize="16" Margin="10" HorizontalAlignment="Center"/> </Grid> </Border> </UserControl>