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
+3
View File
@@ -65,6 +65,9 @@ public partial class CreateWalletViewModel :
public async Task Import() => ImageDescriptor = await Mediator.Handle<CreateEventArgs<ProfileImage>,
IImageDescriptor>(Create.As<ProfileImage>());
[RelayCommand]
public void Remove() => ImageDescriptor = null;
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
{
if (args.PropertyName is string name)