Fix XAML warnings in settings window

This commit is contained in:
Yusyuriv 2024-05-24 06:05:01 +06:00
parent f8d6f12456
commit be64583602
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0
2 changed files with 1 additions and 2 deletions

View file

@ -53,7 +53,7 @@
FontStyle="{TemplateBinding FontStyle}"
FontWeight="{TemplateBinding FontWeight}"
Foreground="{TemplateBinding Foreground}"
IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}">
<ToggleButton.Style>
<Style TargetType="{x:Type ToggleButton}">
<Setter Property="Template">

View file

@ -14,7 +14,6 @@
d:DataContext="{d:DesignInstance viewModels:SettingsPaneThemeViewModel}"
d:DesignHeight="450"
d:DesignWidth="800"
Style="{DynamicResource SettingPageBasic}"
mc:Ignorable="d">
<ui:Page.Resources>
<ResourceDictionary>