Repository navigation
Expand file tree
/
Copy pathMainPage.xaml
More file actions
36 lines (29 loc) · 2.12 KB
/
Copy pathMainPage.xaml
File metadata and controls
36 lines (29 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Page
x:Class="FootCtrl.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:FootCtrl"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
d:DesignHeight="400"
d:DesignWidth="600" RequestedTheme="Dark"
>
<RelativePanel Width="600" Height="400" RequestedTheme="Dark" >
<Border x:Name="StatusBorder" Margin="5,5,5,0">
<ScrollViewer VerticalScrollMode="Auto" VerticalScrollBarVisibility="Auto" MaxHeight="80">
<!-- Use LiveSetting to enable screen readers to announce the status update. -->
<TextBlock x:Name="StatusBlock" FontWeight="Bold" AutomationProperties.LiveSetting="Assertive"
MaxWidth="{Binding ElementName=Splitter, Path=ActualWidth}" Margin="10,10,10,20" TextWrapping="Wrap" RenderTransformOrigin="0.486,-1.762" Width="880" />
</ScrollViewer>
</Border>
<TextBlock x:Name="StatusLabel1" Margin="120,55,0,10" TextWrapping="Wrap" Text="Input:" />
<TextBlock x:Name="StatusLabel2" Margin="410,55,0,10" TextWrapping="Wrap" Text="Output:" />
<ListBox x:Name="midiInPortListBox" Height="200" Width="390" Margin="5,80,0,0" IsEnabled="False" RequestedTheme="Dark"/>
<ListBox x:Name="midiOutPortListBox" Height="200" Width="190" Margin="400,80,0,0" IsEnabled="False" RequestedTheme="Dark" />
<Button x:Name="Rescan" Content="Rescan" Margin="220,300,0,0" VerticalAlignment="Top" Height="73" Width="134" Click="Rescan_Click"/>
<CheckBox Content="Battery Level" x:Name="Battery_Level" Margin="5,370,0,0" Height="30" Width="100" IsChecked="False" Checked="Battery_Level_Checked" Unchecked="Battery_Level_Unchecked"/>
<TextBox x:Name="txtVersion" TextWrapping="Wrap" IsReadOnly="True" Margin="500,370,0,0" Height="30" Width="100" Text="Version"/>
</RelativePanel>
</Page>