From 1882a736207d200e244cbf675e5891a334c02fa1 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Thu, 28 Nov 2024 16:03:42 +0330 Subject: [PATCH] Fix VSIX Binding issues --- .../DevWinUI_Template/Controls/SettingsControl.xaml | 4 ++-- .../DevWinUI_Template/Views/Pages/PagesPage.xaml | 4 ++-- .../DevWinUI_Template/Views/Pages/ResourcePage.xaml | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/VSIX/DevWinUI_Template/DevWinUI_Template/Controls/SettingsControl.xaml b/VSIX/DevWinUI_Template/DevWinUI_Template/Controls/SettingsControl.xaml index 68076f1..4429442 100644 --- a/VSIX/DevWinUI_Template/DevWinUI_Template/Controls/SettingsControl.xaml +++ b/VSIX/DevWinUI_Template/DevWinUI_Template/Controls/SettingsControl.xaml @@ -37,7 +37,7 @@ Margin="0,0,16,0" VerticalAlignment="Center" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}" - IsChecked="{TemplateBinding IsOn}" + IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsOn, Mode=TwoWay}" OffContent="Off" OnContent="On" /> @@ -75,7 +75,7 @@ diff --git a/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/PagesPage.xaml b/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/PagesPage.xaml index 9206c0c..bae6bf4 100644 --- a/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/PagesPage.xaml +++ b/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/PagesPage.xaml @@ -14,7 +14,7 @@ @@ -22,7 +22,7 @@ diff --git a/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/ResourcePage.xaml b/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/ResourcePage.xaml index 219a434..d93dc1c 100644 --- a/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/ResourcePage.xaml +++ b/VSIX/DevWinUI_Template/DevWinUI_Template/Views/Pages/ResourcePage.xaml @@ -11,8 +11,6 @@ -