wip item images

This commit is contained in:
TheXamlGuy
2024-07-01 21:41:13 +01:00
parent 4c663fdbe4
commit ecd493d1a7
9 changed files with 51 additions and 58 deletions
+12
View File
@@ -35,7 +35,9 @@ public partial class ItemViewModel :
IDisposer disposer,
IContentTemplate template,
NamedComponent named,
IDecoratorService<ItemHeaderConfiguration> itemHeaderConfigurationDecorator,
string name = "",
ImageDescriptor? imageDescriptor = null,
bool fromCategory = false,
bool favourite = false,
bool archived = false,
@@ -48,6 +50,16 @@ public partial class ItemViewModel :
Favourite = favourite;
Archived = archived;
Name = name;
ItemHeaderConfiguration configuration = new()
{
Name = name
};
itemHeaderConfigurationDecorator.Set(configuration);
Add<ItemHeaderViewModel>(configuration, state, name, imageDescriptor);
Add<ItemContentViewModel>();
}
public IContentTemplate Template { get; set; }