public OverlayWindow(DockManager owner)
        {
            //if (!Application.Current.Resources.Contains("DockDownButtonSyle"))
            //{
            //    using (FileStream fs = new FileStream(@"generic.xaml", FileMode.Open, FileAccess.Read))
            //    {
            //        ResourceDictionary resources = (ResourceDictionary)XamlReader.Load(fs);
            //        Application.Current.Resources.Add("DockDownButtonSyle", resources["DockDownButtonSyle"]);
            //    }
            //}

            InitializeComponent();

            _owner = owner;

            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockBottom, this));
            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockTop, this));
            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockLeft, this));
            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockRight, this));

            owdBottom   = new OverlayWindowDockingButton(btnDockPaneBottom, this, false);
            owdTop      = new OverlayWindowDockingButton(btnDockPaneTop,    this, false);
            owdLeft     = new OverlayWindowDockingButton(btnDockPaneLeft,   this, false);
            owdRight    = new OverlayWindowDockingButton(btnDockPaneRight,  this, false);
            owdInto     = new OverlayWindowDockingButton(btnDockPaneInto, this, false);

            DockManager.DragPaneServices.Register(owdBottom);
            DockManager.DragPaneServices.Register(owdTop);
            DockManager.DragPaneServices.Register(owdLeft);
            DockManager.DragPaneServices.Register(owdRight);
            DockManager.DragPaneServices.Register(owdInto);

            //gridPaneRelativeDockingOptions.Width = 88;
            //gridPaneRelativeDockingOptions.Height = 88;
        }
Exemple #2
0
        public OverlayWindow(DockManager owner)
        {
            //if (!Application.Current.Resources.Contains("DockDownButtonSyle"))
            //{
            //    using (FileStream fs = new FileStream(@"generic.xaml", FileMode.Open, FileAccess.Read))
            //    {
            //        ResourceDictionary resources = (ResourceDictionary)XamlReader.Load(fs);
            //        Application.Current.Resources.Add("DockDownButtonSyle", resources["DockDownButtonSyle"]);
            //    }
            //}

            InitializeComponent();

            _owner = owner;

            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockBottom, this));
            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockTop, this));
            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockLeft, this));
            DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockRight, this));

            owdBottom = new OverlayWindowDockingButton(btnDockPaneBottom, this, false);
            owdTop    = new OverlayWindowDockingButton(btnDockPaneTop, this, false);
            owdLeft   = new OverlayWindowDockingButton(btnDockPaneLeft, this, false);
            owdRight  = new OverlayWindowDockingButton(btnDockPaneRight, this, false);
            owdInto   = new OverlayWindowDockingButton(btnDockPaneInto, this, false);



            DockManager.DragPaneServices.Register(owdBottom);
            DockManager.DragPaneServices.Register(owdTop);
            DockManager.DragPaneServices.Register(owdLeft);
            DockManager.DragPaneServices.Register(owdRight);
            DockManager.DragPaneServices.Register(owdInto);

            //gridPaneRelativeDockingOptions.Width = 88;
            //gridPaneRelativeDockingOptions.Height = 88;
        }