Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static void SetFocusManager(DependencyObject obj, FocusManagerBase value)
 {
     obj.SetValue(FocusManagerProperty, value);
 }
 public FocusUpdatesSuppressor(FocusManagerBase suppressedFocusManager)
 {
     this.suppressedFocusManager           = suppressedFocusManager;
     suppressedFocusManager.CanUpdateFocus = false;
 }