/// <summary> /// Get the dock option /// </summary> /// <param name="optionName"></param> /// <param name="element"></param> private bool GetDockOption(string optionName, FrameworkElement element) { bool result = true; DockState state = DockingManager.GetState(element); switch (optionName) { // Get the dock option as CanDock case "CanDock": result = DockingManager.GetCanDock(element); break; // Get the dock option as CanFloat case "CanFloat": result = DockingManager.GetCanFloat(element); break; // Get the dock option as CanClose case "CanClose": result = DockingManager.GetCanClose(element); break; // Get the dock option as CanAutoHide case "CanAutoHide": result = DockingManager.GetCanAutoHide(element); break; //Get the dock option as CanDragAutoHidden case "CanDragAutoHidden": result = DockingManager.GetCanDragAutoHidden(element); break; // Get the dock option as CanDocument case "CanDocument": result = DockingManager.GetCanDocument(element); break; // Get the dock option as CanDrag case "CanDrag": result = DockingManager.GetCanDrag(element); break; // Get the dock option as NoHeader case "NoHeader": result = DockingManager.GetNoHeader(element); break; //Get the dock option as AllowSnap case "AllowSnap": result = DockingManager.GetAllowSnap(element); break; // Get the dock option as Dock case "Dock": result = state == DockState.Dock; break; // Get the dock option as Float case "Float": result = state == DockState.Float; break; // Get the dock option as Document case "Document": result = state == DockState.Document; break; // Get the dock option as AutoHidden case "AutoHidden": result = state == DockState.AutoHidden; break; // Get the dock option as Hidden case "Hidden": result = state == DockState.Hidden; break; case "AllowPin": result = DocumentContainer.GetAllowPin(element); break; case "ShowPin": result = DocumentContainer.GetShowPin(element); break; } return(result); }