Datamodels - A few small fixes to fix errors during startup

Layer properties - Reimplemented property tree
Stylet - Add support for binding views to generic VMs
This commit is contained in:
SpoinkyNL committed 2020-05-17 18:54:15 +02:00
1 parent 8f639c9074
commit 2fd522bafb
22 files changed
+207 -42

No files matched your search

+10 -1
View File
@@ -1,4 +1,7 @@
using Stylet;
using System;
using System.Collections.Generic;
using System.Reflection;
using Stylet;
namespace Artemis.UI.Stylet
{
@@ -7,5 +10,11 @@ namespace Artemis.UI.Stylet
public ArtemisViewManager(ViewManagerConfig config) : base(config)
{
}
protected override string ViewTypeNameForModelTypeName(string modelTypeName)
{
var cleaned = modelTypeName.Split('`')[0];
return base.ViewTypeNameForModelTypeName(cleaned);
}
}
}
+1 -1
View File
@@ -44,7 +44,7 @@ namespace Artemis.UI.Stylet
ViewFactory = GetInstance,
ViewAssemblies = new List<Assembly> {GetType().Assembly}
};
kernel.Bind<IViewManager>().ToConstant(new ViewManager(viewManagerConfig));
kernel.Bind<IViewManager>().ToConstant(new ArtemisViewManager(viewManagerConfig));
kernel.Bind<IWindowManagerConfig>().ToConstant(this).InTransientScope();
kernel.Bind<IWindowManager>().ToMethod(