public static void SetContextBar(DependencyObject element, ContextBar value) { element.SetValue(ContextBarProperty, value); }
protected void UnregisterContextBar(ContextBar menu) { Owners.UnregisterSharedItem(menu); }
private static void OnContextBarPropertyChanged(FrameworkElement frameworkElement, ContextBar oldBar, ContextBar newBar) { SharedItemHelper.Share(frameworkElement, oldBar, newBar); PopupControlService.OnPopupControllerSelectorChanged(frameworkElement, oldBar?.PopupController, newBar?.PopupController); }