Skip to content

Commit

Permalink
Fixing ColorTool in demo apps (#3410)
Browse files Browse the repository at this point in the history
Just needed to get the colors from the LookupDictionary
  • Loading branch information
Keboo authored Dec 7, 2023
1 parent 5a46111 commit 244cbf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion MainDemo.Wpf/ColorTool.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@
<TextBlock Width="80"
VerticalAlignment="Center"
Text="{Binding Name, Mode=OneTime}" />
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}" ItemsSource="{Binding Hues, Mode=OneTime}">
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}"
ItemsSource="{Binding Lookup.Values, Mode=OneTime}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" />
Expand Down
3 changes: 2 additions & 1 deletion MaterialDesign3.Demo.Wpf/ColorTool.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@
<TextBlock Width="80"
VerticalAlignment="Center"
Text="{Binding Name}" />
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}" ItemsSource="{Binding Hues}">
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}"
ItemsSource="{Binding Lookup.Values, Mode=OneTime}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" />
Expand Down

0 comments on commit 244cbf1

Please sign in to comment.