FocusHelper::SetFocusTarget Method (UIElement^, UIElement^)

Visual Studio 2015
 

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.

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

public:
static void SetFocusTarget(
	UIElement^ element,
	UIElement^ value
)

Parameters

element
Type: System.Windows::UIElement^

The element that should have a focus target attached to it.

value
Type: System.Windows::UIElement^

The new focus target for the element.

Return to top
Show: