1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <UserControl x:Class="FurnaceUI.Views.Maintenances.StockerSensorView"
- 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:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:cal="http://www.caliburn.org"
- xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
- xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"
- mc:Ignorable="d"
- d:DesignHeight="600" d:DesignWidth="640" x:Name="self">
- <UserControl.Resources>
- <DataTemplate x:Key="IndexTemplate">
- <Label Content="{Binding Index}" Width="30" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>
- </DataTemplate>
- <DataTemplate x:Key="NameTemplate">
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,0">
- <Label Content="{Binding DisplayName}" Width="350" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>
- </Border>
- </DataTemplate>
- <DataTemplate x:Key="ValueTemplate">
- <deviceControl:AITSensor LightOnValue="{Binding Value}" GreenColor="True" Width="100" Height="36" VerticalAlignment="Center" HorizontalAlignment="Center">
- </deviceControl:AITSensor>
- </DataTemplate>
- </UserControl.Resources>
- <Grid Margin="10,0,10,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="50"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"/>
- <ColumnDefinition Width="75"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <GroupBox Grid.Row="0" Grid.ColumnSpan="3">
- <ListView ItemsSource="{Binding StockerSensors}" MaxHeight="320">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Index" CellTemplate="{StaticResource ResourceKey=IndexTemplate}"></GridViewColumn>
- <GridViewColumn Header="Name" CellTemplate="{StaticResource ResourceKey=NameTemplate}"></GridViewColumn>
- <GridViewColumn Header="Value" CellTemplate="{StaticResource ResourceKey=ValueTemplate}"></GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </GroupBox>
- <DockPanel Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,0,0">
- <Border>
- <Button Content="Close" Style="{StaticResource CommandButton}" Margin="0,0,20,0" Width="120" Height="40">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="ClosedCmd">
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- </Border>
- </DockPanel>
- </Grid>
- </UserControl>
|