280 lines
17 KiB
XML
280 lines
17 KiB
XML
<Grid x:Class="Common.UI.Controls.GridLayout"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:VM="clr-namespace:Common.UI.ViewModels">
|
|
<Grid.Resources>
|
|
<DataTemplate DataType="{x:Type VM:EregisterTaskVM}" >
|
|
<Border Background="{Binding Label, Converter={StaticResource TaskStateToBG}}"
|
|
BorderBrush="Gray"
|
|
BorderThickness="0, 0, 1, 1"
|
|
Margin="0"
|
|
MinWidth="150"
|
|
Padding="10, 5">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="20" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Path Fill="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="0"
|
|
Grid.Row="0"
|
|
Height="13"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="13">
|
|
<Path.Data>
|
|
<PathGeometry Figures="M3.05 3.05a7 7 0 0 0 0 9.9.5.5 0 0 1-.707.707 8 8 0 0 1 0-11.314.5.5 0 0 1 .707.707m2.122 2.122a4 4 0 0 0 0 5.656.5.5 0 1 1-.708.708 5 5 0 0 1 0-7.072.5.5 0 0 1 .708.708m5.656-.708a.5.5 0 0 1 .708 0 5 5 0 0 1 0 7.072.5.5 0 1 1-.708-.708 4 4 0 0 0 0-5.656.5.5 0 0 1 0-.708m2.122-2.12a.5.5 0 0 1 .707 0 8 8 0 0 1 0 11.313.5.5 0 0 1-.707-.707 7 7 0 0 0 0-9.9.5.5 0 0 1 0-.707zM6 8a2 2 0 1 1 2.5 1.937V15.5a.5.5 0 0 1-1 0V9.937A2 2 0 0 1 6 8" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Grid Grid.Row="0" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="20" />
|
|
<ColumnDefinition Width="20" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Content="{Binding Address}"
|
|
FontFamily="Consolas"
|
|
Foreground="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
<Path Fill="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="1"
|
|
Height="13"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Visibility="{Binding IsEncrypted, Converter={StaticResource BooleanToVisibility}}"
|
|
Width="13">
|
|
<Path.Data>
|
|
<GeometryGroup>
|
|
<PathGeometry Figures="M0 8a4 4 0 0 1 7.465-2H14a.5.5 0 0 1 .354.146l1.5 1.5a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0L13 9.207l-.646.647a.5.5 0 0 1-.708 0L11 9.207l-.646.647a.5.5 0 0 1-.708 0L9 9.207l-.646.647A.5.5 0 0 1 8 10h-.535A4 4 0 0 1 0 8m4-3a3 3 0 1 0 2.712 4.285A.5.5 0 0 1 7.163 9h.63l.853-.854a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.793-.793-1-1h-6.63a.5.5 0 0 1-.451-.285A3 3 0 0 0 4 5" />
|
|
<PathGeometry Figures="M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0" />
|
|
</GeometryGroup>
|
|
</Path.Data>
|
|
</Path>
|
|
<Path Fill="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="2"
|
|
Height="12"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Visibility="{Binding IsSealed, Converter={StaticResource BooleanToVisibility}}"
|
|
Width="12">
|
|
<Path.Data>
|
|
<PathGeometry Figures="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2m3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2M5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1" />
|
|
</Path.Data>
|
|
</Path>
|
|
</Grid>
|
|
<Path Fill="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
Height="12"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="12">
|
|
<Path.Data>
|
|
<GeometryGroup>
|
|
<PathGeometry Figures="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z" />
|
|
<PathGeometry Figures="M5.5 12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-3-8.5a1 1 0 0 1 1-1c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1-1-1m0 4a1 1 0 0 1 1-1 6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1-1-1" />
|
|
</GeometryGroup>
|
|
</Path.Data>
|
|
</Path>
|
|
<Label Content="{Binding RSSI}"
|
|
FontFamily="Consolas"
|
|
Foreground="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
<Path Fill="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="0"
|
|
Grid.Row="2"
|
|
Height="13"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="13">
|
|
<Path.Data>
|
|
<PathGeometry FillRule="EvenOdd" Figures="M10.478 1.647a.5.5 0 1 0-.956-.294l-4 13a.5.5 0 0 0 .956.294zM4.854 4.146a.5.5 0 0 1 0 .708L1.707 8l3.147 3.146a.5.5 0 0 1-.708.708l-3.5-3.5a.5.5 0 0 1 0-.708l3.5-3.5a.5.5 0 0 1 .708 0m6.292 0a.5.5 0 0 0 0 .708L14.293 8l-3.147 3.146a.5.5 0 0 0 .708.708l3.5-3.5a.5.5 0 0 0 0-.708l-3.5-3.5a.5.5 0 0 0-.708 0" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Label Content="{Binding Name}"
|
|
FontFamily="Consolas"
|
|
Foreground="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="1"
|
|
Grid.Row="2"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
<Path Fill="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="0"
|
|
Grid.Row="3"
|
|
Height="13"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="13">
|
|
<Path.Data>
|
|
<PathGeometry FillRule="EvenOdd" Figures="M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5M3.854 2.146a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708L2 3.293l1.146-1.147a.5.5 0 0 1 .708 0m0 4a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708L2 7.293l1.146-1.147a.5.5 0 0 1 .708 0m0 4a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Label Content="{Binding Label}"
|
|
FontFamily="Consolas"
|
|
Foreground="{Binding Label, Converter={StaticResource TaskStateToFG}}"
|
|
Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type VM:EregisterHeaderVM}" >
|
|
<Border Background="#FFF0F0F0"
|
|
BorderBrush="Gray"
|
|
BorderThickness="0, 0, 1, 1"
|
|
Margin="0"
|
|
MinWidth="150"
|
|
Padding="10, 5">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="20" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Path Fill="DarkSlateGray"
|
|
Grid.Column="0"
|
|
Grid.Row="0"
|
|
Height="13"
|
|
HorizontalAlignment="Left"
|
|
Margin="2, 0, 0, 0"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="13">
|
|
<Path.Data>
|
|
<PathGeometry FillRule="EvenOdd" Figures="M8 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6M4 4a4 4 0 1 1 4.5 3.969V13.5a.5.5 0 0 1-1 0V7.97A4 4 0 0 1 4 3.999zm2.493 8.574a.5.5 0 0 1-.411.575c-.712.118-1.28.295-1.655.493a1.3 1.3 0 0 0-.37.265.3.3 0 0 0-.057.09V14l.002.008.016.033a.6.6 0 0 0 .145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.6.6 0 0 0 .146-.15l.015-.033L12 14v-.004a.3.3 0 0 0-.057-.09 1.3 1.3 0 0 0-.37-.264c-.376-.198-.943-.375-1.655-.493a.5.5 0 1 1 .164-.986c.77.127 1.452.328 1.957.594C12.5 13 13 13.4 13 14c0 .426-.26.752-.544.977-.29.228-.68.413-1.116.558-.878.293-2.059.465-3.34.465s-2.462-.172-3.34-.465c-.436-.145-.826-.33-1.116-.558C3.26 14.752 3 14.426 3 14c0-.599.5-1 .961-1.243.505-.266 1.187-.467 1.957-.594a.5.5 0 0 1 .575.411" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Label Content="{Binding SlotNr}"
|
|
FontFamily="Consolas"
|
|
FontSize="13"
|
|
FontWeight="Bold"
|
|
Foreground="DarkSlateGray"
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
<Path Fill="DarkSlateGray"
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
Height="12"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="12">
|
|
<Path.Data>
|
|
<PathGeometry Figures="M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5 8 5.961 14.154 3.5zM15 4.239l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464z" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Label Content="{Binding PoNr}"
|
|
FontFamily="Consolas"
|
|
FontSize="13"
|
|
FontWeight="Bold"
|
|
Foreground="DarkSlateGray"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
<Path Fill="DarkSlateGray"
|
|
Grid.Column="0"
|
|
Grid.Row="2"
|
|
Height="12"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="12">
|
|
<Path.Data>
|
|
<PathGeometry Figures="M3 4.5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0zm2 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0z" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Label Content="{Binding SerialNr}"
|
|
FontFamily="Consolas"
|
|
FontSize="13"
|
|
FontWeight="Bold"
|
|
Foreground="DarkSlateGray"
|
|
Grid.Column="1"
|
|
Grid.Row="2"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
<Path Fill="DarkSlateGray"
|
|
Grid.Column="0"
|
|
Grid.Row="3"
|
|
Height="13"
|
|
HorizontalAlignment="Left"
|
|
Stretch="Uniform"
|
|
VerticalAlignment="Center"
|
|
Width="13">
|
|
<Path.Data>
|
|
<PathGeometry Figures="M3.05 3.05a7 7 0 0 0 0 9.9.5.5 0 0 1-.707.707 8 8 0 0 1 0-11.314.5.5 0 0 1 .707.707m2.122 2.122a4 4 0 0 0 0 5.656.5.5 0 1 1-.708.708 5 5 0 0 1 0-7.072.5.5 0 0 1 .708.708m5.656-.708a.5.5 0 0 1 .708 0 5 5 0 0 1 0 7.072.5.5 0 1 1-.708-.708 4 4 0 0 0 0-5.656.5.5 0 0 1 0-.708m2.122-2.12a.5.5 0 0 1 .707 0 8 8 0 0 1 0 11.313.5.5 0 0 1-.707-.707 7 7 0 0 0 0-9.9.5.5 0 0 1 0-.707zM10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Label Content="{Binding Frequency}"
|
|
FontFamily="Consolas"
|
|
FontSize="13"
|
|
FontWeight="Bold"
|
|
Foreground="DarkSlateGray"
|
|
Grid.Column="1"
|
|
Grid.Row="3"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type VM:GridItem}" >
|
|
<Border BorderBrush="Gray"
|
|
BorderThickness="0, 0, 1, 1"
|
|
Margin="0"
|
|
MinHeight="20"
|
|
MinWidth="150"
|
|
Padding="10, 5">
|
|
<Label Content="{Binding Label}"
|
|
FontFamily="Consolas"
|
|
FontWeight="Bold"
|
|
Foreground="DarkSlateGray"
|
|
HorizontalAlignment="Left"
|
|
Margin="0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
</DataTemplate>
|
|
</Grid.Resources>
|
|
</Grid>
|