XamlBindingHelper.SetPropertyFromTimeSpan 方法

定义

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)

参数

dependencyObject
Object

Platform::Object

IInspectable

要设置的属性所属的 对象。

propertyToSet
DependencyProperty

将值写入到的属性。

value
TimeSpan TimeSpan

要设置的值。

注解

此方法用于 XAML 编译器生成的代码。

适用于