AnalogControl4Jet.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <UserControl
  2. x:Class="Aitex.Core.UI.Control.AnalogControl4Jet"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:converters="clr-namespace:MECF.Framework.UI.Core.Converters"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. x:Name="Self"
  9. Width="38"
  10. Height="36"
  11. BorderThickness="1"
  12. mc:Ignorable="d">
  13. <UserControl.Resources>
  14. <converters:BoolVisibilityConverter x:Key="boolVisibilityConverter"/>
  15. </UserControl.Resources>
  16. <Grid
  17. Cursor="Hand"
  18. MouseEnter="Grid_MouseEnter"
  19. MouseLeftButtonUp="Grid_MouseLeftButtonUp"
  20. Opacity="1"
  21. TouchUp="Grid_TouchUp">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="18"/>
  24. <RowDefinition Height="18"/>
  25. </Grid.RowDefinitions>
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="38"/>
  28. </Grid.ColumnDefinitions>
  29. <Border
  30. x:Name="topBorder"
  31. Grid.Row="0"
  32. Grid.ColumnSpan="2"
  33. Margin="0,0,2,0"
  34. BorderBrush="Black"
  35. BorderThickness="1,1,1,1">
  36. <Grid>
  37. <Rectangle Name="rectSetPoint"/>
  38. <Label
  39. x:Name="labelSetPoint"
  40. Padding="0,2,0,0"
  41. HorizontalContentAlignment="Center"
  42. Content="{Binding ElementName=Self, Path=ViewName, UpdateSourceTrigger=PropertyChanged}"
  43. FontFamily="Arial,SimSun"
  44. FontSize="10"
  45. FontWeight="Bold"
  46. Foreground="Black"/>
  47. </Grid>
  48. </Border>
  49. <Border
  50. x:Name="downBorder"
  51. Grid.Row="1"
  52. Grid.Column="0"
  53. Margin="0,0,2,2"
  54. BorderBrush="Black"
  55. BorderThickness="1,0,1,1">
  56. <Grid>
  57. <Border x:Name="bdRectangle">
  58. <Rectangle Name="rectBkground"/>
  59. </Border>
  60. <TextBlock
  61. x:Name="labelValue1"
  62. HorizontalAlignment="Center"
  63. VerticalAlignment="Center"
  64. FontFamily="Arial,SimSun"
  65. FontSize="10"
  66. FontWeight="Bold"
  67. Foreground="Black"
  68. Text="{Binding ElementName=Self, Path=ShowValue, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
  69. </Grid>
  70. </Border>
  71. </Grid>
  72. </UserControl>