Files
laatzen/Common/OMNIPruefung/Views/Content/COMContent.xaml
T

51 lines
2.3 KiB
XML

<ScrollViewer x:Class="OMNIPruefung.Views.Content.COMContent"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="White">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ItemsControl Grid.Row="0" ItemsSource="{Binding Meter.Properties}" FontFamily="Consolas">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Vertical">
<Label Content="{Binding Path=Key}" Padding="21, 3" FontWeight="Bold"/>
<ItemsControl ItemsSource="{Binding Path=Value}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Label Content="{Binding Path=Key}" Padding="42, 3, 2, 3" Width="200" FontWeight="Bold"/>
<Label Content="{Binding Path=Value}" Padding="3"/>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<TextBlock Grid.Row="1"
Margin="13"
FontFamily="Consolas"
TextAlignment="Left"
Text="{Binding TestResults}" />
<TextBlock Grid.Row="2"
Margin="13"
FontFamily="Consolas"
TextAlignment="Left"
Text="{Binding Error}" />
<DataGrid Grid.Row="3" ItemsSource="{Binding Meter.Results}" />
</Grid>
</ScrollViewer>