Dela via


XamlBindingHelper.SetPropertyFromTimeSpan Method

Definition

Sets a DependencyProperty from a TimeSpan value.

public:
 static void SetPropertyFromTimeSpan(Platform::Object ^ dependencyObject, DependencyProperty ^ propertyToSet, TimeSpan value);
 static void SetPropertyFromTimeSpan(IInspectable const& dependencyObject, DependencyProperty const& propertyToSet, TimeSpan const& value);
public static void SetPropertyFromTimeSpan(object dependencyObject, DependencyProperty propertyToSet, System.TimeSpan value);
function setPropertyFromTimeSpan(dependencyObject, propertyToSet, value)
Public Shared Sub SetPropertyFromTimeSpan (dependencyObject As Object, propertyToSet As DependencyProperty, value As TimeSpan)

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
TimeSpan TimeSpan

The value to set.

Remarks

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

Applies to