18 lines
420 B
C#
18 lines
420 B
C#
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);
|
|
}
|
|
}
|
|
}
|