Skip to content

Commit

Permalink
Fix VSIX Binding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Nov 28, 2024
1 parent ae333f7 commit 1882a73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</Grid>
Expand Down Expand Up @@ -75,7 +75,7 @@
<ContentControl x:Name="PART_Content"
Content="{TemplateBinding Item}" />
<ui:ToggleSwitch x:Name="PART_ToggleSwitch"
IsChecked="{TemplateBinding IsOn}"
IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsOn, Mode=TwoWay}"
OffContent="Off"
OnContent="On" />
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
<Separator Margin="0,10,0,5"
HorizontalAlignment="Stretch" />
<local:SettingsControl x:Name="tgHomePage"
Title="1. Add Home Landing Page"
Title="Add Home Landing Page"
Description="Will create a landing page for your application's home screen. "
Toggled="tgHomePage_Toggled">
<local:SettingsControl.Icon>
<ui:SymbolIcon Symbol="Home24" />
</local:SettingsControl.Icon>
</local:SettingsControl>
<local:SettingsControl x:Name="tgSettingsPage"
Title="2. Add SettingsPage"
Title="Add SettingsPage"
Description="Will create a settings page with a BreadCrumbBar for your application"
Toggled="tgSettingsPage_Toggled">
<local:SettingsControl.Icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<ScrollViewer Margin="5"
VerticalAlignment="Top">
<StackPanel>
<Separator Margin="0,10,0,10"
HorizontalAlignment="Stretch" />
<local:SettingsControl x:Name="tgDicColor"
Title="Add ThemeResources.xaml Dictionary"
Description="define reusable resources like colors and brushes for consistent theming across your application."
Expand Down

0 comments on commit 1882a73

Please sign in to comment.