AUXEditView.xaml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <UserControl x:Class="FurnaceUI.Views.Parameter.AUXEditView"
  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:FurnaceUI.Views.Operations"
  7. xmlns:parts="clr-namespace:FurnaceUI.Controls.Parts"
  8. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  9. xmlns:cal="http://www.caliburn.org"
  10. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  11. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  12. mc:Ignorable="d"
  13. Height="550" Width="500">
  14. <Grid>
  15. <Border>
  16. <Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray" BorderThickness="1,1,1,1" Margin="10,10,10,5" >
  17. <Grid VerticalAlignment="Top" >
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="50"/>
  20. <RowDefinition Height="50"/>
  21. <RowDefinition Height="50"/>
  22. <RowDefinition Height="50"/>
  23. <RowDefinition Height="50"/>
  24. <RowDefinition Height="50"/>
  25. <RowDefinition Height="50"/>
  26. <RowDefinition Height="50"/>
  27. <RowDefinition Height="50"/>
  28. <RowDefinition Height="*"/>
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="158"/>
  32. <ColumnDefinition/>
  33. </Grid.ColumnDefinitions>
  34. <Label Grid.Row="0" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="Display"/>
  35. <Border Grid.Row="0" Grid.ColumnSpan="2" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
  36. <TextBox Width="316" Height="45" Text="{Binding ValueList[0].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  37. </Border>
  38. <Label Grid.Row="1" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="Set"/>
  39. <Border Grid.Row="1" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
  40. <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[5].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  41. </Border>
  42. <Label Grid.Row="2" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="WarningLowLimit"/>
  43. <Border Grid.Row="2" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
  44. <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[6].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  45. </Border>
  46. <Label Grid.Row="3" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="WarningHighLimit"/>
  47. <Border Grid.Row="3" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
  48. <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[7].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  49. </Border>
  50. <Label Grid.Row="4" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="AlarmLowLimit"/>
  51. <Border Grid.Row="4" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
  52. <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[8].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  53. </Border>
  54. <Label BorderBrush="Gray" BorderThickness="1,1,0,1" Grid.Row="5" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="AlarmHighLimit"/>
  55. <Border Grid.Row="5" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,1">
  56. <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[9].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  57. </Border>
  58. <Label Visibility="{Binding IsModifyAll,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource bool2VisibilityConverter}}" Grid.Row="6" Grid.Column="0" BorderBrush="Gray" BorderThickness="1,0,0,0" Style="{StaticResource LabelGrid_Title}" Content="AI"/>
  59. <Border Visibility="{Binding IsModifyAll,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource bool2VisibilityConverter}}" Grid.Row="6" Grid.ColumnSpan="2" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,0,1,0">
  60. <TextBox Width="316" Height="45" Text="{Binding ValueList[1].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  61. </Border>
  62. <Label Visibility="{Binding IsModifyAll,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource bool2VisibilityConverter}}" Grid.Row="7" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" BorderBrush="Gray" BorderThickness="1,1,0,1" Content="AO"/>
  63. <Border Visibility="{Binding IsModifyAll,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource bool2VisibilityConverter}}" Grid.Row="7" Grid.ColumnSpan="2" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,1">
  64. <TextBox Width="316" Height="45" Text="{Binding ValueList[2].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  65. </Border>
  66. <Label Visibility="{Binding IsModifyAll,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource bool2VisibilityConverter}}" Grid.Row="8" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" BorderBrush="Gray" BorderThickness="1,1,0,1" Content="Unit"/>
  67. <Border Visibility="{Binding IsModifyAll,UpdateSourceTrigger=PropertyChanged, Converter={StaticResource bool2VisibilityConverter}}" Grid.Row="8" Grid.ColumnSpan="2" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,1">
  68. <TextBox Width="316" Height="45" Text="{Binding ValueList[3].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  69. </Border>
  70. <Button Content="Save" Grid.Row="9" Width="120" Margin="79,23,279,-18" Height="45" Grid.ColumnSpan="2" Grid.RowSpan="2">
  71. <i:Interaction.Triggers>
  72. <i:EventTrigger EventName="Click">
  73. <cal:ActionMessage MethodName="SaveBtnClick">
  74. </cal:ActionMessage>
  75. </i:EventTrigger>
  76. </i:Interaction.Triggers>
  77. </Button>
  78. <Button Content="Cancel" Grid.Row="9" Grid.Column="1" Width="120" Margin="131,23,69,-18" Height="45" Grid.RowSpan="2">
  79. <i:Interaction.Triggers>
  80. <i:EventTrigger EventName="Click">
  81. <cal:ActionMessage MethodName="CancelBtnClick">
  82. </cal:ActionMessage>
  83. </i:EventTrigger>
  84. </i:Interaction.Triggers>
  85. </Button>
  86. </Grid>
  87. </Border>
  88. </Border>
  89. </Grid>
  90. </UserControl>