Hiding remove context menu when there are no colors in the history (#8482)

(cherry picked from commit 08d84cbd6a)
This commit is contained in:
martinchrzan
2020-12-08 15:33:14 +01:00
committed by GitHub
parent df5c513603
commit 4bb149718f

View File

@@ -28,7 +28,7 @@
SelectedIndex="{Binding SelectedColorIndex}"
ItemContainerStyle="{DynamicResource ColorHistoryListViewStyle}">
<ui:ListView.ContextMenu>
<ContextMenu>
<ContextMenu Visibility="{Binding ColorsHistory.Count, Converter={StaticResource numberToVisibilityConverter}}">
<MenuItem Header="{x:Static p:Resources.Remove}"
Command="{Binding RemoveColorCommand}">
<MenuItem.Icon>