private static void UpdateRestrictedPanes(RadOutlookBar outLookBar, bool value) { var paneGroup = outLookBar.ParentOfType <RadPaneGroup>(); if (paneGroup != null) { foreach (var pane in paneGroup.EnumeratePanes()) { if (ConditionalDockingHelper.GetPaneType(pane) == Enums.PaneType.Restricted) { pane.CanUserPin = value; pane.CanFloat = value; } } } }
private Enums.PaneType GetPaneType(RadPane pane) { return(ConditionalDockingHelper.GetPaneType(pane)); }