18 lines
425 B
C#
18 lines
425 B
C#
using Caliburn.Micro;
|
|
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.Composition;
|
|
|
|
namespace AntDesignWPFDemo.ViewModels
|
|
{
|
|
[Export(typeof(IShell))]
|
|
internal class ShellViewModel : Conductor<IScreen>.Collection.OneActive
|
|
{
|
|
[ImportingConstructor]
|
|
protected ShellViewModel([ImportMany] IEnumerable<IScreen> screens)
|
|
{
|
|
Items.AddRange(screens);
|
|
}
|
|
}
|
|
}
|