No need for ImageDescriptorToBitmapConverter
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
Width="{StaticResource PersonPictureSize}"
|
||||
Height="{StaticResource PersonPictureSize}"
|
||||
DisplayName="{Binding Name}"
|
||||
ProfilePicture="{Binding Image, Converter={ImageDescriptorToBitmapConverter}}" />
|
||||
ProfilePicture="{Binding ImageDescriptor.Image}" />
|
||||
<DropDownButton
|
||||
Width="{StaticResource ButtonSize}"
|
||||
Height="{StaticResource ButtonSize}"
|
||||
|
||||
@@ -11,7 +11,7 @@ public partial class CreateWalletViewModel :
|
||||
IPrimaryConfirmation
|
||||
{
|
||||
[ObservableProperty]
|
||||
private IImageDescriptor? image;
|
||||
private IImageDescriptor? imageDescriptor;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool isConfirmed;
|
||||
@@ -62,7 +62,7 @@ public partial class CreateWalletViewModel :
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
public async Task Import() => Image = await Mediator.Handle<RequestEventArgs<ProfileImage>,
|
||||
public async Task Import() => ImageDescriptor = await Mediator.Handle<RequestEventArgs<ProfileImage>,
|
||||
IImageDescriptor>(Request.As<ProfileImage>());
|
||||
|
||||
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
|
||||
|
||||
Reference in New Issue
Block a user