WIP Image imports and file access

This commit is contained in:
TheXamlGuy
2024-06-28 21:03:56 +01:00
parent f75084e874
commit 3d39487cd7
6 changed files with 40 additions and 5 deletions
+7
View File
@@ -1,4 +1,5 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using Toolkit.Foundation;
@@ -27,6 +28,12 @@ public partial class CreateWalletViewModel :
[ObservableProperty]
private bool isConfirmed;
[RelayCommand]
public async Task Import()
{
await Mediator.Handle<RequestEventArgs<ProfileImage>, IImageDescriptor>(Request.As<ProfileImage>());
}
public CreateWalletViewModel(IValidation validation,
IServiceProvider provider,
IServiceFactory factory,