Skip to content

Commit

Permalink
Add missing TemplateBinding for the ColorPalettes
Browse files Browse the repository at this point in the history
  • Loading branch information
timunie authored and punker76 committed Jun 29, 2021
1 parent a8fd41c commit aba93fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MahApps.Metro/Themes/ColorPicker/ColorPicker.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
Style="{TemplateBinding StandardColorPaletteStyle}"
IsAlphaChannelVisible="{TemplateBinding IsAlphaChannelVisible}"
ColorHelper="{TemplateBinding ColorHelper}"
ColorNamesDictionary="{TemplateBinding ColorNamesDictionary}"
Visibility="{TemplateBinding IsStandardColorPaletteVisible, Converter={StaticResource BooleanToVisibilityConverter}}" />

<mah:ColorPalette x:Name="PART_ColorPaletteAvailable"
Expand All @@ -337,6 +338,7 @@
Style="{TemplateBinding AvailableColorPaletteStyle}"
IsAlphaChannelVisible="{TemplateBinding IsAlphaChannelVisible}"
ColorHelper="{TemplateBinding ColorHelper}"
ColorNamesDictionary="{TemplateBinding ColorNamesDictionary}"
Visibility="{TemplateBinding IsAvailableColorPaletteVisible, Converter={StaticResource BooleanToVisibilityConverter}}" />

<mah:ColorPalette x:Name="PART_ColorPaletteCustom01"
Expand All @@ -346,6 +348,7 @@
Style="{TemplateBinding CustomColorPalette01Style}"
IsAlphaChannelVisible="{TemplateBinding IsAlphaChannelVisible}"
ColorHelper="{TemplateBinding ColorHelper}"
ColorNamesDictionary="{TemplateBinding ColorNamesDictionary}"
Visibility="{TemplateBinding IsCustomColorPalette01Visible, Converter={StaticResource BooleanToVisibilityConverter}}" />

<mah:ColorPalette x:Name="PART_ColorPaletteCustom02"
Expand All @@ -355,6 +358,7 @@
Style="{TemplateBinding CustomColorPalette02Style}"
IsAlphaChannelVisible="{TemplateBinding IsAlphaChannelVisible}"
ColorHelper="{TemplateBinding ColorHelper}"
ColorNamesDictionary="{TemplateBinding ColorNamesDictionary}"
Visibility="{TemplateBinding IsCustomColorPalette02Visible, Converter={StaticResource BooleanToVisibilityConverter}}" />

<mah:ColorPalette x:Name="PART_ColorPaletteRecent"
Expand All @@ -364,6 +368,7 @@
Style="{TemplateBinding RecentColorPaletteStyle}"
IsAlphaChannelVisible="{TemplateBinding IsAlphaChannelVisible}"
ColorHelper="{TemplateBinding ColorHelper}"
ColorNamesDictionary="{TemplateBinding ColorNamesDictionary}"
Visibility="{TemplateBinding IsRecentColorPaletteVisible, Converter={StaticResource BooleanToVisibilityConverter}}" />
</VirtualizingStackPanel>
</ScrollViewer>
Expand Down

0 comments on commit aba93fb

Please sign in to comment.