private bool ShouldHideTabGroup(ViewElement element, bool hideOnlyActiveView) { FloatSite floatSite = ViewElement.FindRootElement(element) as FloatSite; bool flag = floatSite != null && !floatSite.HasMultipleOnScreenViews; return(element.Parent is TabGroup && (flag && this.Preferences.AlwaysHideAllViewInFloatingTabGroup || !hideOnlyActiveView)); }
public void ActivateFloatingControl(ViewElement element) { if (element == null) { throw new ArgumentNullException("element"); } FloatSite key = ViewElement.FindRootElement(element) as FloatSite; FloatingWindow floatingWindow; if (key == null || !this.floatingWindows.TryGetValue(key, out floatingWindow)) { return; } floatingWindow.Activate(); }
public static WindowProfile FindWindowProfile(ViewElement view) { return((WindowProfile)ViewElement.FindRootElement(view).GetValue(ViewElement.WindowProfileProperty)); }