aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml
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/CheatWindow.axaml
parent88df636c870528a24695a23ffeb3768399bcf0af (diff)
remove some usages of reflection binding (#5686)
Diffstat (limited to 'src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml')
-rw-r--r--src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml15
1 files changed, 8 insertions, 7 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>