FocusHelper Class

 

Microsoft internal use only. Manages focus tasks.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  Microsoft.VisualStudio.PlatformUI.FocusHelper

public static class FocusHelper

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticFocusTarget

Gets the focus target for an element.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticFocusPossiblyUnloadedElement(FrameworkElement)

Either sends focus to the FrameworkElement immediately or delays focusing until the FrameworkElement is loaded. The last element pending focus on Loaded will be focused and all previous FrameworkElements will not be focused.

System_CAPS_pubmethodSystem_CAPS_staticGetFocusTarget(UIElement)

Gets the focus target for an element. The focus target is automatically focused whenever the DependencyObject that the target is attached to receives direct keyboard focus.

System_CAPS_pubmethodSystem_CAPS_staticIsKeyboardFocusWithin(IntPtr)

Determines whether WPF or Win32 keyboard focus is within the specified HWND.

System_CAPS_pubmethodSystem_CAPS_staticIsKeyboardFocusWithin(UIElement)

Determines whether WPF or Win32 keyboard focus is within the specified element.

System_CAPS_pubmethodSystem_CAPS_staticMoveFocusInto(UIElement)

Uses the MoveFocus method to try to move WPF focus to the first valid focusable element inside the given UIElement, after first enduring that WPF will not attempt to change focus because of a cross- HwndSource focus change.

System_CAPS_pubmethodSystem_CAPS_staticSetFocusTarget(UIElement, UIElement)

Sets the focus target for an element. The focus target is automatically focused whenever the DependencyObject that the target is attached to receives direct keyboard focus.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticFocusTargetProperty

Gets or sets a focus target for an element. The focus target is automatically focused whenever the DependencyObject that the target is attached to receives direct keyboard focus.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: