FocusHelper FocusHelper FocusHelper FocusHelper FocusHelper FocusHelper Class

Definition

Microsoft internal use only. Manages focus tasks.

public ref class FocusHelper abstract sealed
public ref class FocusHelper abstract sealed
class FocusHelper abstract sealed
public static class FocusHelper
type FocusHelper = class
Public Class FocusHelper
Inheritance
FocusHelperFocusHelperFocusHelperFocusHelperFocusHelperFocusHelper

Fields

FocusTargetProperty FocusTargetProperty FocusTargetProperty FocusTargetProperty FocusTargetProperty FocusTargetProperty

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.

Attached Properties

FocusTarget FocusTarget FocusTarget FocusTarget FocusTarget FocusTarget

Gets the focus target for an element.

Methods

FocusPossiblyUnloadedElement(FrameworkElement) FocusPossiblyUnloadedElement(FrameworkElement) FocusPossiblyUnloadedElement(FrameworkElement) FocusPossiblyUnloadedElement(FrameworkElement) FocusPossiblyUnloadedElement(FrameworkElement) FocusPossiblyUnloadedElement(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.

GetFocusTarget(UIElement) GetFocusTarget(UIElement) GetFocusTarget(UIElement) GetFocusTarget(UIElement) GetFocusTarget(UIElement) GetFocusTarget(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.

IsKeyboardFocusWithin(IntPtr) IsKeyboardFocusWithin(IntPtr) IsKeyboardFocusWithin(IntPtr) IsKeyboardFocusWithin(IntPtr) IsKeyboardFocusWithin(IntPtr) IsKeyboardFocusWithin(IntPtr)

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

IsKeyboardFocusWithin(UIElement) IsKeyboardFocusWithin(UIElement) IsKeyboardFocusWithin(UIElement) IsKeyboardFocusWithin(UIElement) IsKeyboardFocusWithin(UIElement) IsKeyboardFocusWithin(UIElement)

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

MoveFocusInto(UIElement) MoveFocusInto(UIElement) MoveFocusInto(UIElement) MoveFocusInto(UIElement) MoveFocusInto(UIElement) MoveFocusInto(UIElement)

Uses the MoveFocus(TraversalRequest) 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.

SetFocusTarget(UIElement, UIElement) SetFocusTarget(UIElement, UIElement) SetFocusTarget(UIElement, UIElement) SetFocusTarget(UIElement, UIElement) SetFocusTarget(UIElement, UIElement) SetFocusTarget(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.

Applies to