Exemplo n.º 1
0
 /// <inheritdoc />
 /// <summary>
 /// Closes this instance.
 /// </summary>
 public void Close()
 {
     if (IsDisposed)
     {
         return;
     }
     foreach (var defaultTool in DefaultTools)
     {
         if (!defaultTool.IsAssignableFrom(typeof(ITool)))
         {
             continue;
         }
         if (IoC.GetInstance(defaultTool, null) is ITool tool)
         {
             DockingHostViewModel.HideTool(tool, true);
         }
     }
     Dispose(true);
 }
Exemplo n.º 2
0
 protected override void Initialize()
 {
     DockingHostViewModel.OpenLayoutItem(IoC.Get <SampleViewModel>());
     base.Initialize();
 }