XamlBindingHelper.SetPropertyFromDateTime 方法

定义

public:
 static void SetPropertyFromDateTime(Platform::Object ^ dependencyObject, DependencyProperty ^ propertyToSet, DateTime value);
 static void SetPropertyFromDateTime(IInspectable const& dependencyObject, DependencyProperty const& propertyToSet, DateTime const& value);
public static void SetPropertyFromDateTime(object dependencyObject, DependencyProperty propertyToSet, System.DateTimeOffset value);
function setPropertyFromDateTime(dependencyObject, propertyToSet, value)
Public Shared Sub SetPropertyFromDateTime (dependencyObject As Object, propertyToSet As DependencyProperty, value As DateTimeOffset)

参数

dependencyObject
Object

Platform::Object

IInspectable

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

propertyToSet
DependencyProperty

将值写入到的属性。

value
DateTime DateTimeOffset

要设置的值。

注解

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

适用于