Пример #1
0
        public FlyoutPaneWindow(DockingManager manager, DockableContent content)
            : this()
        {
            //create a new temporary pane
            _refPane        = new FlyoutDockablePane(content);
            _dockingManager = manager;

            //_winFormsHost = ReferencedPane.GetLogicalChildContained<WindowsFormsHost>();

            //if (_winFormsHost != null)
            //{
            //    AllowsTransparency = false;
            //}

            this.Loaded += new RoutedEventHandler(FlyoutPaneWindow_Loaded);
        }
Пример #2
0
        /// <summary>
        /// Initialize the window
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            //Attach the referenced pane to show
            if (ReferencedPane == null)
            {
                _refPane = this.Content as FlyoutDockablePane;
            }

            if (ReferencedPane != null)
            {
                //move the pane under me as content
                //ReferencePane now changes visual tree!
                Content = ReferencedPane;
                InitClosingTimer();
            }
        }