Fixed imagereader, again

This commit is contained in:
TheXamlGuy
2024-07-03 12:39:23 +01:00
parent c52c8f4d35
commit 515aee896e
2 changed files with 11 additions and 1 deletions
+11
View File
@@ -10,6 +10,7 @@ public partial class ItemHeaderViewModel :
INotificationHandler<ConfirmEventArgs<Item>>,
INotificationHandler<CancelEventArgs<Item>>,
INotificationHandler<NotifyEventArgs<ItemCategory<string>>>,
INotificationHandler<NotifyEventArgs<Item<IImageDescriptor>>>,
IItemViewModel
{
private readonly ItemHeaderConfiguration configuration;
@@ -95,4 +96,14 @@ public partial class ItemHeaderViewModel :
configuration.ImageDescriptor = value;
}
}
public Task Handle(NotifyEventArgs<Item<IImageDescriptor>> args)
{
if (args.Sender is Item<IImageDescriptor> item)
{
ImageDescriptor = item.Value;
}
return Task.CompletedTask;
}
}
-1
View File
@@ -1,6 +1,5 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Diagnostics;
using Toolkit.Foundation;
namespace Wallet;