123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <UserControl x:Class="FurnaceUI.Views.Parameter.AUXEditView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:FurnaceUI.Views.Operations"
- xmlns:parts="clr-namespace:FurnaceUI.Controls.Parts"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:cal="http://www.caliburn.org"
- xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- mc:Ignorable="d"
- Height="550" Width="500">
- <Grid>
- <Border>
- <Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray" BorderThickness="1,1,1,1" Margin="10,10,10,5" >
- <Grid VerticalAlignment="Top" >
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="158"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="Display"/>
- <Border Grid.Row="0" Grid.ColumnSpan="2" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
- <TextBox Width="316" Height="45" Text="{Binding ValueList[0].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
- </Border>
- <Label Grid.Row="1" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="Set"/>
- <Border Grid.Row="1" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
- <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[5].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Label Grid.Row="2" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="WarningLowLimit"/>
- <Border Grid.Row="2" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
- <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[6].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Label Grid.Row="3" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="WarningHighLimit"/>
- <Border Grid.Row="3" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
- <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[7].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Label Grid.Row="4" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="AlarmLowLimit"/>
- <Border Grid.Row="4" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,0">
- <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[8].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Label BorderBrush="Gray" BorderThickness="1,1,0,1" Grid.Row="5" Grid.Column="0" Style="{StaticResource LabelGrid_Title}" Content="AlarmHighLimit"/>
- <Border Grid.Row="5" Background="White" Grid.Column="1" BorderBrush="Gray" BorderThickness="1,1,1,1">
- <TextBox Width="316" Height="45" Tag="Number" Text="{Binding ValueList[9].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <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"/>
- <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">
- <TextBox Width="316" Height="45" Text="{Binding ValueList[1].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
- </Border>
- <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"/>
- <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">
- <TextBox Width="316" Height="45" Text="{Binding ValueList[2].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </Border>
- <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"/>
- <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">
- <TextBox Width="316" Height="45" Text="{Binding ValueList[3].CurrentValue,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </Border>
- <Button Content="Save" Grid.Row="9" Width="120" Margin="79,23,279,-18" Height="45" Grid.ColumnSpan="2" Grid.RowSpan="2">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="SaveBtnClick">
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <Button Content="Cancel" Grid.Row="9" Grid.Column="1" Width="120" Margin="131,23,69,-18" Height="45" Grid.RowSpan="2">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="CancelBtnClick">
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- </Grid>
- </Border>
- </Border>
- </Grid>
- </UserControl>
|