ControllerAppletDialog.axaml
1 <UserControl 2 x:Class="Ryujinx.Ava.UI.Applet.ControllerAppletDialog" 3 xmlns="https://github.com/avaloniaui" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 6 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 7 xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale" 8 xmlns:applet="using:Ryujinx.Ava.UI.Applet" 9 mc:Ignorable="d" 10 Width="400" 11 Focusable="True" 12 x:DataType="applet:ControllerAppletDialog"> 13 <Grid 14 HorizontalAlignment="Stretch" 15 VerticalAlignment="Stretch"> 16 <Grid.RowDefinitions> 17 <RowDefinition Height="Auto" /> 18 <RowDefinition Height="*" /> 19 <RowDefinition Height="Auto" /> 20 </Grid.RowDefinitions> 21 <Grid.ColumnDefinitions> 22 <ColumnDefinition Width="*" /> 23 <ColumnDefinition Width="Auto" /> 24 </Grid.ColumnDefinitions> 25 <Border 26 Grid.Column="0" 27 Grid.Row="0" 28 Grid.ColumnSpan="2" 29 Margin="0 0 0 10" 30 BorderBrush="{DynamicResource ThemeControlBorderColor}" 31 BorderThickness="1" 32 CornerRadius="5"> 33 <StackPanel 34 Spacing="10" 35 Margin="10"> 36 <TextBlock 37 Text="{locale:Locale ControllerAppletDescription}" /> 38 <TextBlock 39 IsVisible="{Binding IsDocked}" 40 FontWeight="Bold" 41 Text="{locale:Locale ControllerAppletDocked}" /> 42 </StackPanel> 43 </Border> 44 <Border 45 Grid.Column="0" 46 Grid.Row="1" 47 BorderBrush="{DynamicResource ThemeControlBorderColor}" 48 BorderThickness="1" 49 CornerRadius="5" 50 Margin="0 0 10 0"> 51 <StackPanel 52 Margin="10" 53 Spacing="10" 54 Orientation="Vertical"> 55 <TextBlock 56 HorizontalAlignment="Center" 57 VerticalAlignment="Center" 58 TextAlignment="Center" 59 FontWeight="Bold" 60 Text="{locale:Locale ControllerAppletControllers}" /> 61 <StackPanel 62 Spacing="10" 63 HorizontalAlignment="Center" 64 VerticalAlignment="Center" 65 Orientation="Horizontal"> 66 <Image 67 Height="50" 68 Width="50" 69 Stretch="Uniform" 70 Source="{Binding ProControllerImage}" 71 IsVisible="{Binding SupportsProController}" /> 72 <Image 73 Height="50" 74 Width="50" 75 Stretch="Uniform" 76 Source="{Binding JoyconPairImage}" 77 IsVisible="{Binding SupportsJoyconPair}" /> 78 <Image 79 Height="50" 80 Width="50" 81 Stretch="Uniform" 82 Source="{Binding JoyconLeftImage}" 83 IsVisible="{Binding SupportsLeftJoycon}" /> 84 <Image 85 Height="50" 86 Width="50" 87 Stretch="Uniform" 88 Source="{Binding JoyconRightImage}" 89 IsVisible="{Binding SupportsRightJoycon}" /> 90 </StackPanel> 91 </StackPanel> 92 </Border> 93 <Border 94 Grid.Column="1" 95 Grid.Row="1" 96 BorderBrush="{DynamicResource ThemeControlBorderColor}" 97 BorderThickness="1" 98 CornerRadius="5"> 99 <StackPanel 100 Margin="10" 101 Spacing="10" 102 Orientation="Vertical"> 103 <TextBlock 104 HorizontalAlignment="Center" 105 VerticalAlignment="Center" 106 TextAlignment="Center" 107 FontWeight="Bold" 108 Text="{locale:Locale ControllerAppletPlayers}" /> 109 <Border Height="50"> 110 <TextBlock 111 HorizontalAlignment="Center" 112 VerticalAlignment="Center" 113 TextAlignment="Center" 114 FontSize="40" 115 FontWeight="Thin" 116 Text="{Binding PlayerCount}" /> 117 </Border> 118 </StackPanel> 119 </Border> 120 <Panel 121 Margin="0 24 0 0" 122 Grid.Column="0" 123 Grid.Row="2" 124 Grid.ColumnSpan="2"> 125 <StackPanel 126 Orientation="Horizontal" 127 Spacing="10" 128 HorizontalAlignment="Right"> 129 <Button 130 Name="SaveButton" 131 MinWidth="90" 132 Command="{Binding OpenSettingsWindow}"> 133 <TextBlock Text="{locale:Locale DialogOpenSettingsWindowLabel}" /> 134 </Button> 135 <Button 136 Name="CancelButton" 137 MinWidth="90" 138 Command="{Binding Close}"> 139 <TextBlock Text="{locale:Locale SettingsButtonClose}" /> 140 </Button> 141 </StackPanel> 142 </Panel> 143 </Grid> 144 </UserControl> 145