InverterPoint.xaml 1.8 KB

1234567891011121314151617181920212223
  1. <UserControl x:Class="NEIntelligentControl2.Views.Infos.InverterPoint"
  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" MouseLeftButtonDown="Border_MouseLeftButtonDown">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="2*"/>
  13. <ColumnDefinition Width="3*"/>
  14. <ColumnDefinition Width="1*"/>
  15. </Grid.ColumnDefinitions>
  16. <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=TagInfo.Name}" VerticalAlignment="Center" Foreground="#FFD1D1D1" HorizontalAlignment="Right" FontSize="17"/>
  17. <Border Grid.Column="1" VerticalAlignment="Center" Background="#FF19232C" CornerRadius="11" Margin="5" Padding="5,2">
  18. <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=PointValue}" Foreground="WhiteSmoke" HorizontalAlignment="Right" FontSize="16" VerticalAlignment="Center"/>
  19. </Border>
  20. <TextBlock Grid.Column="2" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=TagInfo.Unit}" VerticalAlignment="Center" Foreground="#FF0777D8" FontSize="17"/>
  21. </Grid>
  22. </Border>
  23. </UserControl>