aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/UI/Windows
diff options
context:
space:
mode:
authorEmmanuel Hansen <emmausssss@gmail.com>2023-09-18 20:09:22 +0000
committerGitHub <noreply@github.com>2023-09-18 22:09:22 +0200
commit9f26fd36008d2cf4fe96b8dce7ec935b38b0b4c7 (patch)
treea385ba684a7ab1927c293d028818d04d7295820f /src/Ryujinx.Ava/UI/Windows
parent88df636c870528a24695a23ffeb3768399bcf0af (diff)
remove some usages of reflection binding (#5686)
Diffstat (limited to 'src/Ryujinx.Ava/UI/Windows')
-rw-r--r--src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml15
-rw-r--r--src/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml10
2 files changed, 13 insertions, 12 deletions
diff --git a/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml b/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml
index b9cbcb9c..8a5da5cc 100644
--- a/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml
+++ b/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml
@@ -11,6 +11,7 @@
Height="500"
MinWidth="500"
MinHeight="500"
+ x:DataType="window:CheatWindow"
WindowStartupLocation="CenterOwner"
mc:Ignorable="d"
Focusable="True">
@@ -40,7 +41,7 @@
HorizontalAlignment="Center"
VerticalAlignment="Center"
LineHeight="18"
- Text="{ReflectionBinding Heading}"
+ Text="{Binding Heading}"
TextAlignment="Center"
TextWrapping="Wrap" />
<TextBlock
@@ -61,7 +62,7 @@
MinWidth="160"
HorizontalAlignment="Center"
VerticalAlignment="Center"
- Text="{ReflectionBinding BuildId}"
+ Text="{Binding BuildId}"
IsReadOnly="True" />
<Border
Grid.Row="3"
@@ -77,7 +78,7 @@
MinHeight="300"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
- ItemsSource="{ReflectionBinding LoadedCheats}">
+ ItemsSource="{Binding LoadedCheats}">
<TreeView.Styles>
<Styles>
<Style Selector="TreeViewItem:empty /template/ ItemsPresenter">
@@ -120,18 +121,18 @@
Name="SaveButton"
MinWidth="90"
Margin="5"
- Command="{ReflectionBinding Save}"
- IsVisible="{ReflectionBinding !NoCheatsFound}">
+ Command="{Binding Save}"
+ IsVisible="{Binding !NoCheatsFound}">
<TextBlock Text="{locale:Locale SettingsButtonSave}" />
</Button>
<Button
Name="CancelButton"
MinWidth="90"
Margin="5"
- Command="{ReflectionBinding Close}">
+ Command="{Binding Close}">
<TextBlock Text="{locale:Locale InputDialogCancel}" />
</Button>
</DockPanel>
</DockPanel>
</Grid>
-</window:StyleableWindow> \ No newline at end of file
+</window:StyleableWindow>
diff --git a/src/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml b/src/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml
index 1f57f34c..99cf28e7 100644
--- a/src/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml
+++ b/src/Ryujinx.Ava/UI/Windows/DownloadableContentManagerWindow.axaml
@@ -39,14 +39,14 @@
Name="EnableAllButton"
MinWidth="90"
Margin="5"
- Command="{ReflectionBinding EnableAll}">
+ Command="{Binding EnableAll}">
<TextBlock Text="{locale:Locale DlcManagerEnableAllButton}" />
</Button>
<Button
Name="DisableAllButton"
MinWidth="90"
Margin="5"
- Command="{ReflectionBinding DisableAll}">
+ Command="{Binding DisableAll}">
<TextBlock Text="{locale:Locale DlcManagerDisableAllButton}" />
</Button>
</StackPanel>
@@ -157,14 +157,14 @@
Name="AddButton"
MinWidth="90"
Margin="5"
- Command="{ReflectionBinding Add}">
+ Command="{Binding Add}">
<TextBlock Text="{locale:Locale SettingsTabGeneralAdd}" />
</Button>
<Button
Name="RemoveAllButton"
MinWidth="90"
Margin="5"
- Command="{ReflectionBinding RemoveAll}">
+ Command="{Binding RemoveAll}">
<TextBlock Text="{locale:Locale DlcManagerRemoveAllButton}" />
</Button>
</StackPanel>
@@ -189,4 +189,4 @@
</StackPanel>
</Panel>
</Grid>
-</UserControl> \ No newline at end of file
+</UserControl>