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); }
/// <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(); } }