Fixed imagereader, again
This commit is contained in:
@@ -10,6 +10,7 @@ public partial class ItemHeaderViewModel :
|
|||||||
INotificationHandler<ConfirmEventArgs<Item>>,
|
INotificationHandler<ConfirmEventArgs<Item>>,
|
||||||
INotificationHandler<CancelEventArgs<Item>>,
|
INotificationHandler<CancelEventArgs<Item>>,
|
||||||
INotificationHandler<NotifyEventArgs<ItemCategory<string>>>,
|
INotificationHandler<NotifyEventArgs<ItemCategory<string>>>,
|
||||||
|
INotificationHandler<NotifyEventArgs<Item<IImageDescriptor>>>,
|
||||||
IItemViewModel
|
IItemViewModel
|
||||||
{
|
{
|
||||||
private readonly ItemHeaderConfiguration configuration;
|
private readonly ItemHeaderConfiguration configuration;
|
||||||
@@ -95,4 +96,14 @@ public partial class ItemHeaderViewModel :
|
|||||||
configuration.ImageDescriptor = value;
|
configuration.ImageDescriptor = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Task Handle(NotifyEventArgs<Item<IImageDescriptor>> args)
|
||||||
|
{
|
||||||
|
if (args.Sender is Item<IImageDescriptor> item)
|
||||||
|
{
|
||||||
|
ImageDescriptor = item.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Task.CompletedTask;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
using CommunityToolkit.Mvvm.Input;
|
using CommunityToolkit.Mvvm.Input;
|
||||||
using System.Diagnostics;
|
|
||||||
using Toolkit.Foundation;
|
using Toolkit.Foundation;
|
||||||
|
|
||||||
namespace Wallet;
|
namespace Wallet;
|
||||||
|
|||||||
Reference in New Issue
Block a user