Share via


IXamlDirect.SetBooleanProperty(Object, XamlPropertyIndex, Boolean) Method

Definition

Sets the value of a Boolean property for a specific IXamlDirect.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 void SetBooleanProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, bool value);
void SetBooleanProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, bool const& value);
public void SetBooleanProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, bool value);
Public Sub SetBooleanProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As Boolean)

Parameters

xamlDirectObject
Object

Platform::Object

IInspectable

A reference to the specific IXamlDirect.

propertyIndex
XamlPropertyIndex

A reference to the Boolean property on which to set the value from the list of supported properties in XamlPropertyIndex enum.

value
Boolean

bool

Boolean value to set for the specified property.

Applies to

See also