protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); if (ReferencedPane == null) { _refPane = this.Content as FlyoutDockablePane; } if (ReferencedPane != null) { //SetValue(ResizingPanel.ResizeWidthProperty, ReferencedPane.GetValue(ResizingPanel.ResizeWidthProperty)); //SetValue(ResizingPanel.ResizeHeightProperty, ReferencedPane.GetValue(ResizingPanel.ResizeHeightProperty)); //SetValue(Window.WidthProperty, ReferencedPane.GetValue(ResizingPanel.ResizeWidthProperty)); //SetValue(Window.HeightProperty, ReferencedPane.GetValue(ResizingPanel.ResizeHeightProperty)); Content = ReferencedPane; //Anchor = ReferencedPane.Anchor; _closingTimer = new DispatcherTimer( new TimeSpan(0, 0, 2), DispatcherPriority.Normal, new EventHandler(OnCloseWindow), Dispatcher.CurrentDispatcher); } }
public FlyoutPaneWindow(DockableContent content) : this() { //create a new temporary pane _refPane = new FlyoutDockablePane(content); _winFormsHost = ReferencedPane.GetLogicalChildContained <WindowsFormsHost>(); if (_winFormsHost != null) { AllowsTransparency = false; } this.Loaded += new RoutedEventHandler(FlyoutPaneWindow_Loaded); }
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; } Loaded += 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(); } }
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); if (ReferencedPane == null) { _refPane = this.Content as FlyoutDockablePane; } if (ReferencedPane != null) { Content = ReferencedPane; _closingTimer = new DispatcherTimer( new TimeSpan(0, 0, 2), DispatcherPriority.Normal, new EventHandler(OnCloseWindow), Dispatcher.CurrentDispatcher); } }
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); if (ReferencedPane == null) _refPane = this.Content as FlyoutDockablePane; if (ReferencedPane != null) { Content = ReferencedPane; _closingTimer = new DispatcherTimer( new TimeSpan(0, 0, 2), DispatcherPriority.Normal, new EventHandler(OnCloseWindow), Dispatcher.CurrentDispatcher); } }
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(); } }