Beispiel #1
0
        public DockablePanelWindowBehavior()
        {
            ScreenInfos = DisplayDevices.GetScreensInfos();
#if alldbg || dbg
            foreach (var scr in ScreenInfos)
            {
                DesktopPanelTool.Lib.Debug.WriteLine(scr);
            }
#endif
        }
 public void AttachToDock(
     DockName dock,
     ScreenInfo dockScreen = null)
 {
     if (dockScreen == null)
     {
         dockScreen = DisplayDevices
                      .GetScreensInfos()
                      .Where(x => x.IsPrimary)
                      .FirstOrDefault();
     }
     if (dockScreen != null)
     {
         _behavior.AttachToDock(dock, dockScreen);
     }
 }