|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <UserControl
- x:Class="BPASmartClient.JXJFoodSmallStation.View.ProcessMonitorView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
- d:DesignHeight="1080"
- d:DesignWidth="1920"
- mc:Ignorable="d">
- <UserControl.DataContext>
- <vm:ProcessMonitorViewModel />
- </UserControl.DataContext>
- <Border BorderBrush="{StaticResource bordColor}" BorderThickness="0">
- <Grid Margin="0,10">
- <Grid.RowDefinitions>
- <RowDefinition Height="60" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="4*" />
- <ColumnDefinition Width="4*" />
- <ColumnDefinition Width="12*" />
- <ColumnDefinition Width="6*" />
- <ColumnDefinition Width="17" />
- </Grid.ColumnDefinitions>
- <Grid>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="32"
- Foreground="Aqua"
- Text="序号" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,1,0,0"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="1">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="32"
- Foreground="Aqua"
- Text="名称" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,1,0,0"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="2">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="32"
- Foreground="Aqua"
- Text="类型" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,1,0,0"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="3">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="32"
- Foreground="Aqua"
- Text="描述" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,1,0,0"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="4">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="32"
- Foreground="Aqua"
- Text="当前值" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,1,0,0"
- Cursor="SizeWE" />
- </Grid>
- </Grid>
- <Grid Grid.Row="1">
- <ScrollViewer>
- <ItemsControl Foreground="Aqua" ItemsSource="{Binding plcInfos}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="4*" />
- <ColumnDefinition Width="4*" />
- <ColumnDefinition Width="12*" />
- <ColumnDefinition Width="6*" />
- </Grid.ColumnDefinitions>
- <Grid>
- <TextBlock
- Margin="5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="Aqua"
- Text="{Binding Count}" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="1">
- <TextBlock
- Margin="5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="Aqua"
- Text="{Binding Name}" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="2">
- <TextBlock
- Margin="5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="Aqua"
- Text="{Binding Type}" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="3">
- <TextBlock
- Margin="5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="Aqua"
- Text="{Binding Describe}" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1"
- Cursor="SizeWE" />
- </Grid>
- <Grid Grid.Column="4">
- <TextBlock
- Margin="5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="Aqua"
- Text="{Binding Value}" />
- <Border
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1"
- Cursor="SizeWE" />
- </Grid>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </Grid>
- </Border>
- </UserControl>
|