|
| 1 | +<Page |
| 2 | + x:Class="VBA10.XboxConfigPage" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:local="using:VBA10" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 | + mc:Ignorable="d"> |
| 9 | + |
| 10 | + <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
| 11 | + <Grid.RowDefinitions> |
| 12 | + <RowDefinition Height="Auto" /> |
| 13 | + <RowDefinition Height="*" /> |
| 14 | + <RowDefinition Height="Auto" /> |
| 15 | + </Grid.RowDefinitions> |
| 16 | + |
| 17 | + |
| 18 | + <StackPanel Background="{ThemeResource ListBoxBorderThemeBrush}" |
| 19 | + VerticalAlignment="Stretch" |
| 20 | + Orientation="Horizontal" > |
| 21 | + |
| 22 | + <TextBlock Text="**Xbox Gamepad Config" |
| 23 | + Style="{ThemeResource TitleTextBlockStyle}" |
| 24 | + Margin="12,4,0,4" |
| 25 | + x:Uid="XboxGamepadConfig" |
| 26 | + x:Name="txtTitle" |
| 27 | + /> |
| 28 | + </StackPanel> |
| 29 | + |
| 30 | + <ScrollViewer HorizontalScrollBarVisibility="Disabled" |
| 31 | + VerticalScrollBarVisibility="Auto" |
| 32 | + Grid.Row="1" |
| 33 | + > |
| 34 | + <StackPanel MaxWidth="500" |
| 35 | + HorizontalAlignment="Left"> |
| 36 | + |
| 37 | + <TextBlock Grid.Row="0" Text="invisible text to stretch the panel invisible text to stretch the panel invisible text to stretch the panel" |
| 38 | + Height="0" |
| 39 | + /> |
| 40 | + |
| 41 | + |
| 42 | + <Grid Margin="12,0,12,0" |
| 43 | + x:Name="gridMain" |
| 44 | + > |
| 45 | + <Grid.RowDefinitions> |
| 46 | + <RowDefinition Height="Auto" /> |
| 47 | + <RowDefinition Height="Auto" /> |
| 48 | + <RowDefinition Height="Auto" /> |
| 49 | + <RowDefinition Height="Auto" /> |
| 50 | + <RowDefinition Height="Auto" /> |
| 51 | + <RowDefinition Height="Auto" /> |
| 52 | + <RowDefinition Height="Auto" /> |
| 53 | + <RowDefinition Height="Auto" /> |
| 54 | + <RowDefinition Height="Auto" /> |
| 55 | + <RowDefinition Height="Auto" /> |
| 56 | + <RowDefinition Height="Auto" /> |
| 57 | + <RowDefinition Height="Auto" /> |
| 58 | + <RowDefinition Height="Auto" /> |
| 59 | + </Grid.RowDefinitions> |
| 60 | + <Grid.ColumnDefinitions> |
| 61 | + <ColumnDefinition Width="1*" /> |
| 62 | + <ColumnDefinition Width="1*" /> |
| 63 | + </Grid.ColumnDefinitions> |
| 64 | + |
| 65 | + |
| 66 | + <TextBlock Grid.Row="0" Grid.Column="0" Text="**Xbox button" x:Uid="XboxButton" Margin="0,12,0,4" Style="{ThemeResource BaseTextBlockStyle}" /> |
| 67 | + <TextBlock Grid.Row="0" Grid.Column="1" Text="**Emulator function" x:Uid="EmulatorFunction" Margin="0,12,0,4" Style="{ThemeResource BaseTextBlockStyle}" /> |
| 68 | + |
| 69 | + <TextBlock Grid.Row="1" Grid.Column="0" Text="A" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 70 | + <ComboBox Grid.Row="1" Grid.Column="1" x:Name="cboA" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 71 | + <TextBlock Grid.Row="2" Grid.Column="0" Text="B" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 72 | + <ComboBox Grid.Row="2" Grid.Column="1" x:Name="cboB" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 73 | + <TextBlock Grid.Row="3" Grid.Column="0" Text="X" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 74 | + <ComboBox Grid.Row="3" Grid.Column="1" x:Name="cboX" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 75 | + <TextBlock Grid.Row="4" Grid.Column="0" Text="Y" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 76 | + <ComboBox Grid.Row="4" Grid.Column="1" x:Name="cboY" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 77 | + <TextBlock Grid.Row="5" Grid.Column="0" Text="L1" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 78 | + <ComboBox Grid.Row="5" Grid.Column="1" x:Name="cboL1" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 79 | + <TextBlock Grid.Row="6" Grid.Column="0" Text="L2" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 80 | + <ComboBox Grid.Row="6" Grid.Column="1" x:Name="cboL2" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 81 | + <TextBlock Grid.Row="7" Grid.Column="0" Text="R1" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 82 | + <ComboBox Grid.Row="7" Grid.Column="1" x:Name="cboR1" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 83 | + <TextBlock Grid.Row="8" Grid.Column="0" Text="R2" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 84 | + <ComboBox Grid.Row="8" Grid.Column="1" x:Name="cboR2" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 85 | + <TextBlock Grid.Row="9" Grid.Column="0" Text="**L3 (Left stick press)" x:Uid="L3LeftStick" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 86 | + <ComboBox Grid.Row="9" Grid.Column="1" x:Name="cboL3" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 87 | + <TextBlock Grid.Row="10" Grid.Column="0" Text="**R3 (Right stick press)" x:Uid="R3RightStick" VerticalAlignment="Center" Margin="0,12,0,4" /> |
| 88 | + <ComboBox Grid.Row="10" Grid.Column="1" x:Name="cboR3" HorizontalAlignment="Stretch" Margin="0,12,0,4" /> |
| 89 | + </Grid> |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + </StackPanel> |
| 94 | + </ScrollViewer> |
| 95 | + |
| 96 | + <StackPanel Orientation="Horizontal" |
| 97 | + Margin="0,8,0,4" |
| 98 | + Grid.Row="2" |
| 99 | + HorizontalAlignment="Center"> |
| 100 | + <Button Content="**Cancel" |
| 101 | + Width="120" |
| 102 | + HorizontalAlignment="Center" |
| 103 | + x:Name="CancelBtn" |
| 104 | + Margin="0,0,8,0" |
| 105 | + x:Uid="CancelBtn" Click="CancelBtn_Click" |
| 106 | + /> |
| 107 | + |
| 108 | + <Button Content="**OK" |
| 109 | + Width="120" |
| 110 | + HorizontalAlignment="Center" |
| 111 | + x:Name="OkBtn" |
| 112 | + x:Uid="OKBtn" Click="OkBtn_Click" |
| 113 | + /> |
| 114 | + </StackPanel> |
| 115 | + </Grid> |
| 116 | +</Page> |
0 commit comments