HwndSourceParameters.RestoreFocusMode 属性

定义

获取或设置 WPF 如何处理将焦点还原到窗口。

public:
 property System::Windows::Input::RestoreFocusMode RestoreFocusMode { System::Windows::Input::RestoreFocusMode get(); void set(System::Windows::Input::RestoreFocusMode value); };
public System.Windows.Input.RestoreFocusMode RestoreFocusMode { get; set; }
member this.RestoreFocusMode : System.Windows.Input.RestoreFocusMode with get, set
Public Property RestoreFocusMode As RestoreFocusMode

属性值

RestoreFocusMode

指定 WPF 如何处理还原窗口的焦点的枚举值之一。 默认值为 Auto

注解

WPF 会自动尝试将焦点还原到窗口,除非 RestoreFocusMode 设置为 None

适用于