AutomationProperties.SetIsDialog(DependencyObject, Boolean) 方法

定義

設定布林值,指出指定的專案是否應該識別為對話方塊視窗。

public:
 static void SetIsDialog(DependencyObject ^ element, bool value);
 static void SetIsDialog(DependencyObject const& element, bool const& value);
public static void SetIsDialog(DependencyObject element, bool value);
function setIsDialog(element, value)
Public Shared Sub SetIsDialog (element As DependencyObject, value As Boolean)

參數

element
DependencyObject

要識別為對話方塊視窗的物件。

value
Boolean

bool

如果專案應該識別為對話方塊視窗,則為true;否則為false

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

備註

AutomationProperties.IsDialog預設為true的飛出視窗ContentDialog元素。

適用於

另請參閱