mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2025-12-06 07:12:04 +01:00
56 lines
1.8 KiB
XML
56 lines
1.8 KiB
XML
<UserControl x:Class="SampleApp.WinDesktop.SatelliteSnr"
|
|
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:local="clr-namespace:SampleApp.WinDesktop"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300" d:DesignWidth="300">
|
|
<Grid Height="100">
|
|
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Path Stroke="Black" StrokeThickness="1"
|
|
Grid.RowSpan="4" Grid.ColumnSpan="4"
|
|
Stretch="Fill"
|
|
Data="M0,0 L 1,0 M 0,1 L 1,1 M 0,2 L 1,2 M 0,3 L 1,3 M 0,4 L 1,4" />
|
|
</Grid>
|
|
<ItemsControl x:Name="satellites"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Horizontal" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border Height="{Binding SignalToNoiseRatio}"
|
|
Background="CornflowerBlue"
|
|
BorderBrush="Black"
|
|
Margin="0,0,10,0" Width="20"
|
|
BorderThickness="1"
|
|
ToolTip="{Binding SignalToNoiseRatio}"
|
|
VerticalAlignment="Bottom">
|
|
<TextBlock Text="{Binding PrnNumber}"
|
|
Foreground="White" FontWeight="Bold"
|
|
HorizontalAlignment="Center" />
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</Grid>
|
|
</UserControl>
|