public OverlayWindowDockingButton(FrameworkElement btnDock, OverlayWindow owner, bool enabled) { if (btnDock == null) throw new ArgumentNullException("btnDock"); if (owner == null) throw new ArgumentNullException("owner"); _btnDock = btnDock; _owner = owner; Enabled = enabled; }
void DockingManager_Unloaded(object sender, RoutedEventArgs e) { Debug.WriteLine("DockingManager Unloaded"); if (!DesignerProperties.GetIsInDesignMode(this)) { //cleanup pending resources HideFlyoutWindow(); if (_overlayWindow != null) { _overlayWindow.Close(); _overlayWindow = null; } foreach (FloatingWindow floatingWindow in _floatingWindows) floatingWindow.Hide(); //navigator windows are now automatically disposed when //no longer used. In this way we avoid WPF bug: //http://social.msdn.microsoft.com/forums/en/wpf/thread/f3fc5b7e-e035-4821-908c-b6c07e5c7042/ //if (navigatorWindow != null) //{ // navigatorWindow.Close(); // navigatorWindow = null; //} //if (documentNavigatorWindow != null) //{ // documentNavigatorWindow.Close(); // documentNavigatorWindow = null; //} DragPaneServices.Unregister(this); } _isControlLoaded = false; }
public OverlayWindowDockingButton(FrameworkElement btnDock, OverlayWindow owner) : this(btnDock, owner, true) { }
public OverlayWindowDockingButton(FrameworkElement btnDock, OverlayWindow owner, bool enabled) { _btnDock = btnDock; _owner = owner; Enabled = enabled; }