Beispiel #1
0
        /// <summary>
        /// Initializing constructor
        /// </summary>
        /// <param name="parent">Reference to the parent window which is to dockable</param>
        /// <param name="windowMover">Window mover interface which is to be used for reporting
        /// and adjusting window position</param>
        public WindowDocker(Window parent, IWindowMover windowMover)
        {
            _parent      = parent;
            _windowMover = windowMover;

            _desktopInfo = new DesktopMonitorInfo(parent.Dispatcher);
            _desktopInfo.DesktopChanged += new EventHandler(OnDesktopChanged);

            SetupEventSubscriptions();
        }
Beispiel #2
0
        /// <summary>
        /// Initializing constructor
        /// </summary>
        /// <param name="parent">Reference to the parent window which is to dockable</param>
        /// <param name="windowMover">Window mover interface which is to be used for reporting
        /// and adjusting window position</param>
        public WindowDocker( Window parent, IWindowMover windowMover )
        {
            _parent = parent;
            _windowMover = windowMover;

            _desktopInfo = new DesktopMonitorInfo( parent.Dispatcher );
            _desktopInfo.DesktopChanged += new EventHandler( OnDesktopChanged );

            SetupEventSubscriptions();
        }