共用方式為


FocusHelper.SetEnableActivationSynchronization(UIElement, Boolean) Method

Definition

Sets a value indicating whether the specified control wants to participate in focus restoration when it has focus during window activation.

public:
 static void SetEnableActivationSynchronization(System::Windows::UIElement ^ element, bool value);
public static void SetEnableActivationSynchronization (System.Windows.UIElement element, bool value);
static member SetEnableActivationSynchronization : System.Windows.UIElement * bool -> unit
Public Shared Sub SetEnableActivationSynchronization (element As UIElement, value As Boolean)

Parameters

element
UIElement

The control to configure.

value
Boolean

if the control wants to partipate in focus restoration on activation.

Applies to