SUN2000InfoTag.xaml 1.6 KB

123456789101112131415161718192021
  1. <UserControl x:Class="NEIntelligentControl2.Views.Infos.SUN2000InfoTag"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Views.Infos"
  7. mc:Ignorable="d"
  8. d:DesignHeight="50" d:DesignWidth="158" Margin="0,6,0,0">
  9. <Border CornerRadius="7" Background="#FF232D38" MinHeight="41">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition/>
  13. <ColumnDefinition Width="1.2*"/>
  14. <ColumnDefinition/>
  15. </Grid.ColumnDefinitions>
  16. <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=Info.Name}" VerticalAlignment="Center" Foreground="#FFD1D1D1" FontSize="16" Margin="10" HorizontalAlignment="Left"/>
  17. <TextBlock Grid.Column="1" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=P}" Foreground="WhiteSmoke" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  18. <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"/>
  19. </Grid>
  20. </Border>
  21. </UserControl>