Share via


XamlBindingHelper.SetPropertyFromBoolean Method

Definition

Sets a DependencyProperty from a Boolean value.

public:
 static void SetPropertyFromBoolean(Platform::Object ^ dependencyObject, DependencyProperty ^ propertyToSet, bool value);
 static void SetPropertyFromBoolean(IInspectable const& dependencyObject, DependencyProperty const& propertyToSet, bool const& value);
public static void SetPropertyFromBoolean(object dependencyObject, DependencyProperty propertyToSet, bool value);
function setPropertyFromBoolean(dependencyObject, propertyToSet, value)
Public Shared Sub SetPropertyFromBoolean (dependencyObject As Object, propertyToSet As DependencyProperty, value As Boolean)

Parameters

dependencyObject
Object

Platform::Object

IInspectable

The object to which the property being set belongs.

propertyToSet
DependencyProperty

The property to which the value is written.

value
Boolean

bool

The value to set.

Remarks

This method is for use in code that is generated by the XAML compiler.

Applies to