Add ability to remove image

This commit is contained in:
TheXamlGuy
2024-06-29 22:25:05 +01:00
parent f4808ccb50
commit 19c35a72d3
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -85,7 +85,10 @@
<DropDownButton.Flyout>
<MenuFlyout>
<MenuItem Command="{Binding ImportCommand}" Header="Import image" />
<MenuItem Header="Remove image" />
<MenuItem
Command="{Binding RemoveCommand}"
Header="Remove image"
IsEnabled="{Binding ImageDescriptor, Converter={x:Static ObjectConverters.IsNotNull}}" />
</MenuFlyout>
</DropDownButton.Flyout>
<TextBlock