Share via


IXamlDirect.SetDurationProperty(Object, XamlPropertyIndex, Duration) Method

Definition

Sets the value of a Duration 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).

void SetDurationProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, Duration const& value);
public void SetDurationProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, Duration value);
Public Sub SetDurationProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As Duration)

Parameters

xamlDirectObject
Object

IInspectable

A reference to the specific IXamlDirect.

propertyIndex
XamlPropertyIndex

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

value
Duration

Duration value to set to the specified property.

Applies to

See also