public static FocusManagerBase GetFocusManager(DependencyObject obj) { if (obj == null) { return(null); } FocusManagerBase focusManager = (FocusManagerBase)obj.GetValue(FocusManagerProperty); if (focusManager == null) { return(GetFocusManager(VisualTreeHelper.GetParent(obj))); } return(focusManager); }
public static void SetFocusManager(DependencyObject obj, FocusManagerBase value) { obj.SetValue(FocusManagerProperty, value); }
public FocusUpdatesSuppressor(FocusManagerBase suppressedFocusManager) { this.suppressedFocusManager = suppressedFocusManager; suppressedFocusManager.CanUpdateFocus = false; }