RoutedPropertyChangedEventArgs<T> 构造函数

定义

重载

RoutedPropertyChangedEventArgs<T>(T, T)

使用提供的旧值和新值初始化 RoutedPropertyChangedEventArgs<T> 类的新实例。Initializes a new instance of the RoutedPropertyChangedEventArgs<T> class, with provided old and new values.

RoutedPropertyChangedEventArgs<T>(T, T, RoutedEvent)

使用提供的旧值和新值以及事件标识符初始化 RoutedPropertyChangedEventArgs<T> 类的新实例。Initializes a new instance of the RoutedPropertyChangedEventArgs<T> class, with provided old and new values, and an event identifier.

RoutedPropertyChangedEventArgs<T>(T, T)

使用提供的旧值和新值初始化 RoutedPropertyChangedEventArgs<T> 类的新实例。Initializes a new instance of the RoutedPropertyChangedEventArgs<T> class, with provided old and new values.

public:
 RoutedPropertyChangedEventArgs(T oldValue, T newValue);
public RoutedPropertyChangedEventArgs (T oldValue, T newValue);
new System.Windows.RoutedPropertyChangedEventArgs<'T> : 'T * 'T -> System.Windows.RoutedPropertyChangedEventArgs<'T>
Public Sub New (oldValue As T, newValue As T)

参数

oldValue
T

属性在引发事件之前的旧值。Previous value of the property, prior to the event being raised.

newValue
T

属性在引发事件时的新值。Current value of the property at the time of the event.

注解

传递的类型必须与特定泛型的声明约束匹配。The types passed must match the declared constraints of the specific generic.

RoutedPropertyChangedEventArgs<T>(T, T, RoutedEvent)

使用提供的旧值和新值以及事件标识符初始化 RoutedPropertyChangedEventArgs<T> 类的新实例。Initializes a new instance of the RoutedPropertyChangedEventArgs<T> class, with provided old and new values, and an event identifier.

public:
 RoutedPropertyChangedEventArgs(T oldValue, T newValue, System::Windows::RoutedEvent ^ routedEvent);
public RoutedPropertyChangedEventArgs (T oldValue, T newValue, System.Windows.RoutedEvent routedEvent);
new System.Windows.RoutedPropertyChangedEventArgs<'T> : 'T * 'T * System.Windows.RoutedEvent -> System.Windows.RoutedPropertyChangedEventArgs<'T>

参数

oldValue
T

属性在引发事件之前的旧值。Previous value of the property, prior to the event being raised.

newValue
T

属性在引发事件时的新值。Current value of the property at the time of the event.

routedEvent
RoutedEvent

此参数类带有其信息的路由事件的标识符。Identifier of the routed event that this arguments class carries information for.

注解

oldValuenewValue传递的类型必须与特定泛型的声明约束匹配。The types passed for oldValue and newValue must match the declared constraints of the specific generic.

适用于