更新
This commit is contained in:
17
AntdWpfDemo/ViewModels/ShellViewModel.cs
Normal file
17
AntdWpfDemo/ViewModels/ShellViewModel.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Caliburn.Micro;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.Composition;
|
||||
|
||||
namespace AntdWpfDemo.ViewModels
|
||||
{
|
||||
[Export(typeof(IShell))]
|
||||
internal class ShellViewModel : Conductor<IScreen>.Collection.OneActive
|
||||
{
|
||||
[ImportingConstructor]
|
||||
protected ShellViewModel([ImportMany] IEnumerable<IScreen> screens)
|
||||
{
|
||||
Items.AddRange(screens);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user