public static void OnPopupControllerSelectorChanged(FrameworkElement frameworkElement, IPopupControllerSelector oldSelector, IPopupControllerSelector newSelector) { if (newSelector != null) { SetControllerSelector(frameworkElement, newSelector); } else if (oldSelector != null && ReferenceEquals(oldSelector, GetControllerSelector(frameworkElement))) { ClearControllerSelector(frameworkElement); } }
public static void SetControllerSelector(FrameworkElement frameworkElement, IPopupControllerSelector controllerSelector) { EnsureInstance(); frameworkElement.SetValue(ControllerSelectorProperty, controllerSelector); }
private static void OnControllerSelectorPropertyChanged(DependencyObject dependencyObject, IPopupControllerSelector oldSelector, IPopupControllerSelector newSelector) { EnsureInstance(); }