Skip to content

Commit 244cbf1

Browse files
authored
Fixing ColorTool in demo apps (#3410)
Just needed to get the colors from the LookupDictionary
1 parent 5a46111 commit 244cbf1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

MainDemo.Wpf/ColorTool.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@
534534
<TextBlock Width="80"
535535
VerticalAlignment="Center"
536536
Text="{Binding Name, Mode=OneTime}" />
537-
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}" ItemsSource="{Binding Hues, Mode=OneTime}">
537+
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}"
538+
ItemsSource="{Binding Lookup.Values, Mode=OneTime}">
538539
<ItemsControl.ItemsPanel>
539540
<ItemsPanelTemplate>
540541
<VirtualizingStackPanel Orientation="Horizontal" />

MaterialDesign3.Demo.Wpf/ColorTool.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@
534534
<TextBlock Width="80"
535535
VerticalAlignment="Center"
536536
Text="{Binding Name}" />
537-
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}" ItemsSource="{Binding Hues}">
537+
<ItemsControl ItemTemplate="{StaticResource SwatchColorTemplate}"
538+
ItemsSource="{Binding Lookup.Values, Mode=OneTime}">
538539
<ItemsControl.ItemsPanel>
539540
<ItemsPanelTemplate>
540541
<VirtualizingStackPanel Orientation="Horizontal" />

0 commit comments

Comments
 (0)