AutomationProperties.SetIsDialog(DependencyObject, Boolean) Method

Definition

Sets a Boolean value that indicates whether the specified element should be identified as a dialog window.

C#
public static void SetIsDialog(DependencyObject element, bool value);

Parameters

element
DependencyObject

The object to identify as a dialog window.

value
Boolean

true if the element should be identified as a dialog window; otherwise, false.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

Flyout and ContentDialog elements default to true for AutomationProperties.IsDialog.

Applies to

Product Versions
WinRT Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also