118 lines
4.9 KiB
Plaintext
118 lines
4.9 KiB
Plaintext
|
<Window x:Class="MECF.Framework.UI.Client.TrayThickness.WinPMThicknessDataView"
|
||
|
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:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||
|
xmlns:micro="clr-namespace:Caliburn.Micro"
|
||
|
xmlns:cal="http://www.caliburn.org"
|
||
|
mc:Ignorable="d"
|
||
|
Height="150" Width="700" >
|
||
|
<Window.Resources>
|
||
|
|
||
|
<Style TargetType="TextBlock" >
|
||
|
<Setter Property="FontSize" Value="13" />
|
||
|
<Setter Property="TextAlignment" Value="Center" />
|
||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||
|
<Setter Property="TextWrapping" Value="Wrap" />
|
||
|
<Setter Property="Margin" Value="3"/>
|
||
|
<Setter Property="FontFamily" Value="Arial Black"/>
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="Border">
|
||
|
<Setter Property="Background" Value="{DynamicResource Table_BG_Title}" />
|
||
|
<Setter Property="BorderBrush" Value="Gray"/>
|
||
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||
|
</Style>
|
||
|
|
||
|
|
||
|
</Window.Resources>
|
||
|
|
||
|
|
||
|
<Grid >
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition Height="3"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<!--界面标题-->
|
||
|
<Border CornerRadius="0,0,0,0" Grid.ColumnSpan="6" Background="#FF243664" >
|
||
|
<TextBlock Text="PM Coating Thickness" FontSize="15" Foreground="White" HorizontalAlignment="Center" Padding="8,0,0,0"/>
|
||
|
</Border >
|
||
|
|
||
|
<!--首行标签-->
|
||
|
<Border Grid.Row="1" Padding="5,1,0,1" BorderThickness="1,0,1,1" >
|
||
|
<TextBlock Text="Component" />
|
||
|
</Border>
|
||
|
<Border Grid.Row="1" Grid.Column="1" Padding="5,1,0,1" BorderThickness="0,0,1,1" >
|
||
|
<TextBlock Text="SN"/>
|
||
|
</Border>
|
||
|
<Border Grid.Row="1" Grid.Column="2" Padding="5,1,0,1" BorderThickness="0,0,1,1" >
|
||
|
<TextBlock Text="Coating"/>
|
||
|
</Border>
|
||
|
<Border Grid.Row="1" Grid.Column="3" Padding="5,1,0,1" BorderThickness="0,0,1,1" >
|
||
|
<TextBlock Text="MAX"/>
|
||
|
</Border>
|
||
|
|
||
|
|
||
|
|
||
|
<!--对象行-->
|
||
|
<Border Grid.Row="2" Padding="5,1,0,1" BorderThickness="1,0,1,1" >
|
||
|
<TextBlock Text="{Binding PMData.MinorCycle.Caption}"/>
|
||
|
</Border>
|
||
|
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding PMData.MinorCycle.SerialNumber}">
|
||
|
<i:Interaction.Triggers>
|
||
|
<i:EventTrigger EventName="LostFocus">
|
||
|
<micro:ActionMessage MethodName="LoadCoatingData">
|
||
|
<micro:Parameter Value="MinorCycle" />
|
||
|
</micro:ActionMessage>
|
||
|
</i:EventTrigger>
|
||
|
</i:Interaction.Triggers>
|
||
|
</TextBox>
|
||
|
<TextBox Grid.Row="2" Grid.Column="2" Text="{Binding PMData.MinorCycle.Current}" TextChanged="TextBox_TextChanged" />
|
||
|
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding PMData.MinorCycle.MAX}" TextChanged="TextBox_TextChanged"/>
|
||
|
|
||
|
<Border Grid.Row="3" Padding="5,1,0,1" BorderThickness="1,1,1,1" >
|
||
|
<TextBlock Text="{Binding PMData.MajorCycle.Caption}"/>
|
||
|
</Border>
|
||
|
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding PMData.MajorCycle.SerialNumber}" >
|
||
|
<i:Interaction.Triggers>
|
||
|
<i:EventTrigger EventName="LostFocus">
|
||
|
<micro:ActionMessage MethodName="LoadCoatingData">
|
||
|
<micro:Parameter Value="MajorCycle" />
|
||
|
</micro:ActionMessage>
|
||
|
</i:EventTrigger>
|
||
|
</i:Interaction.Triggers>
|
||
|
</TextBox>
|
||
|
<TextBox Grid.Row="3" Grid.Column="2" Text="{Binding PMData.MajorCycle.Current}" TextChanged="TextBox_TextChanged"/>
|
||
|
<TextBox Grid.Row="3" Grid.Column="3" Text="{Binding PMData.MajorCycle.MAX}" TextChanged="TextBox_TextChanged"/>
|
||
|
|
||
|
<Grid Grid.Row="1" Grid.Column="4" Grid.RowSpan="3">
|
||
|
<Button
|
||
|
|
||
|
Content="SET"
|
||
|
HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
|
<i:Interaction.Triggers>
|
||
|
<i:EventTrigger EventName="Click">
|
||
|
<micro:ActionMessage MethodName="SET">
|
||
|
</micro:ActionMessage>
|
||
|
</i:EventTrigger>
|
||
|
</i:Interaction.Triggers>
|
||
|
</Button>
|
||
|
</Grid>
|
||
|
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
<!--</Viewbox>-->
|
||
|
</Window>
|