AutomationProperties.SetIsDialog(DependencyObject, Boolean) AutomationProperties.SetIsDialog(DependencyObject, Boolean) AutomationProperties.SetIsDialog(DependencyObject, Boolean) AutomationProperties.SetIsDialog(DependencyObject, Boolean) Method

Definition

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

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

Parameters

element
DependencyObject DependencyObject

The object to identify as a dialog window.

value
Boolean Boolean

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

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)

Remarks

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