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