71 lines
2.5 KiB
XML
71 lines
2.5 KiB
XML
<UserControl x:Class="AmebaPro3_ControlPanel.Views.Pages.JLinkPage"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="720"
|
|
d:DesignWidth="1280">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="280"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Left workspace -->
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0"
|
|
Orientation="Horizontal"
|
|
Margin="0,0,0,12">
|
|
<ComboBox Width="220"
|
|
ItemsSource="{Binding AvailableSerialNumbers}"
|
|
SelectedItem="{Binding SelectedSerialNumber}"
|
|
Margin="0,0,8,0"/>
|
|
<Button Content="Refresh"
|
|
Command="{Binding RefreshSerialsCommand}"
|
|
Style="{StaticResource GhostButtonStyle}"
|
|
Width="120"
|
|
Margin="0,0,8,0"/>
|
|
<Button Content="Connect"
|
|
Command="{Binding ConnectJLinkCommand}"
|
|
Style="{StaticResource PrimaryButtonStyle}"
|
|
Width="140"/>
|
|
</StackPanel>
|
|
|
|
<Border Grid.Row="1"
|
|
Background="Transparent"
|
|
BorderBrush="{StaticResource SubtleBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="10">
|
|
<ContentControl Content="{Binding SelectedApSession}"/>
|
|
</Border>
|
|
</Grid>
|
|
|
|
<!-- AP selector -->
|
|
<Border Grid.Column="1"
|
|
Margin="12,0,0,0"
|
|
Style="{StaticResource CardStyle}">
|
|
<StackPanel>
|
|
<TextBlock Text="AP Targets"
|
|
Style="{StaticResource SectionHeaderTextStyle}"/>
|
|
<ListBox x:Name="ApSelectorListBox"
|
|
ItemsSource="{Binding ApSessions}"
|
|
SelectedItem="{Binding SelectedApSession}"
|
|
ItemContainerStyle="{StaticResource SelectorListBoxItemStyle}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Title}"
|
|
FontWeight="SemiBold"/>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|