ButterflyValveMessageBox.xaml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <Window x:Class="Venus_Themes.UserControls.ButterflyValveMessageBox"
  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:Venus_Themes.UserControls"
  7. xmlns:converters="clr-namespace:Venus_Themes.Converters"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Grid>
  11. <Grid.Resources>
  12. <Style TargetType="RadioButton"/>
  13. <converters:BoolToValueConverter x:Key="BoolToValueConverter"/>
  14. </Grid.Resources>
  15. <Grid.RowDefinitions>
  16. <RowDefinition/>
  17. <RowDefinition/>
  18. <RowDefinition/>
  19. <RowDefinition/>
  20. <RowDefinition/>
  21. <RowDefinition/>
  22. <RowDefinition/>
  23. </Grid.RowDefinitions>
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="1*"/>
  26. <ColumnDefinition Width="auto"/>
  27. <ColumnDefinition Width="auto"/>
  28. <ColumnDefinition Width="1*"/>
  29. </Grid.ColumnDefinitions>
  30. <Label Grid.Row="0" Grid.Column="1" Content="Device Name:" />
  31. <Label Grid.Row="1" Grid.Column="1" Content="Work Mode:" />
  32. <Label Grid.Row="2" Grid.Column="1" Content="Max:" />
  33. <Label Grid.Row="3" Grid.Column="1" Content="Unit:" />
  34. <Label Grid.Row="4" Grid.Column="1" Content="Feedback:" />
  35. <Label Grid.Row="5" Grid.Column="1" Content="Set Point:" />
  36. <Label Grid.Row="0" Grid.Column="2" Content="{Binding Path=DeviceName}" Width="150" Height="28" HorizontalAlignment="Left" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Arial,SimSun" VerticalContentAlignment="Center" />
  37. <Label Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" HorizontalAlignment="Left" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="10" FontFamily="Arial,SimSun" Height="28" VerticalContentAlignment="Center" >
  38. <StackPanel Orientation="Horizontal">
  39. <CheckBox x:Name="ckPosition" VerticalContentAlignment="Center">Position</CheckBox>
  40. <CheckBox x:Name="ckPressure" Margin="10,0,0,0" VerticalContentAlignment="Center">Pressure</CheckBox>
  41. </StackPanel>
  42. </Label>
  43. <Label Grid.Row="2" Grid.Column="2" Content="{Binding Path=MaxValuePosition}" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Arial,SimSun" Height="28" VerticalContentAlignment="Center"
  44. />
  45. <Label Grid.Row="2" Grid.Column="2" Content="{Binding Path=MaxValuePressure}" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Arial,SimSun" Height="28" VerticalContentAlignment="Center"
  46. />
  47. <Label Grid.Row="3" Grid.Column="2" Content="{Binding Path=UnitPosition}" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Arial,SimSun" Height="28" VerticalContentAlignment="Center"
  48. />
  49. <Label Grid.Row="3" Grid.Column="2" Content="{Binding Path=UnitPressure}" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Arial,SimSun" Height="28" VerticalContentAlignment="Center"
  50. />
  51. <Label Grid.Row="4" Grid.Column="2" Content="{Binding Path=FeedbackPosition}" ContentStringFormat="F1" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Arial,SimSun" Height="28" VerticalContentAlignment="Center"
  52. />
  53. <Label Grid.Row="4" Grid.Column="2" Content="{Binding Path=FeedbackPressure}" ContentStringFormat="F1" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Arial,SimSun" Height="28" VerticalContentAlignment="Center"
  54. />
  55. <TextBox Grid.Row="5" Grid.Column="2" x:Name="inputBoxPosition" BorderBrush="Green" BorderThickness="0,0,0,1" Width="150" HorizontalAlignment="Left" FontSize="13" FontFamily="Arial,SimSun" Height="30" VerticalContentAlignment="Center"
  56. />
  57. <TextBox Grid.Row="5" Grid.Column="2" x:Name="inputBoxPressure" BorderBrush="Green" BorderThickness="0,0,0,1" Width="150" HorizontalAlignment="Left" FontSize="13" FontFamily="Arial,SimSun" Height="30" VerticalContentAlignment="Center"
  58. />
  59. <Button Grid.Row="6" Grid.ColumnSpan="2" Content="Set" x:Name="buttonSet" Width="80" Height="26" VerticalAlignment="Top" Grid.Column="1" Margin="5,3,0,0" />
  60. <Button Grid.Row="6" Grid.Column="2" Content="Cancel" Width="80" Height="26" VerticalAlignment="Top" Margin="44,3,0,0" />
  61. </Grid>
  62. </Window>