Skip to content

Commit

Permalink
Improve AccentColorPicker
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Nov 18, 2019
1 parent 93eb420 commit 3fb65e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion samples/SamplesCommon/AccentColorPicker.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,17 @@
<GroupBox Header="Choose your accent color">
<StackPanel>
<ListView
x:Name="AccentColorSelector"
HorizontalAlignment="Left"
VerticalAlignment="Top"
SelectionMode="Single"
SelectedValuePath="Color"
SelectedValue="{Binding AccentColor, Source={x:Static ui:ThemeManager.Current}, Mode=TwoWay}"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
<ListView.Template>
<ControlTemplate TargetType="ListView">
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</ControlTemplate>
</ListView.Template>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid
Expand Down

0 comments on commit 3fb65e3

Please sign in to comment.