Share via


XamlBindingHelper.SetPropertyFromDateTime Method

Definition

Sets a DependencyProperty from a DateTime value.

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)

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
DateTime DateTimeOffset

The value to set.

Remarks

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

Applies to