RoutedPropertyChangingEventArgs<T> Constructor

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the RoutedPropertyChangingEventArgs<T> class,

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)

Syntax

'Declaration
Public Sub New ( _
    property As DependencyProperty, _
    oldValue As T, _
    newValue As T, _
    isCancelable As Boolean _
)
public RoutedPropertyChangingEventArgs(
    DependencyProperty property,
    T oldValue,
    T newValue,
    bool isCancelable
)

Parameters

  • oldValue
    Type: T
    The previous value of the property.
  • newValue
    Type: T
    The new value of the property, assuming that the property change is not cancelled.
  • isCancelable
    Type: System.Boolean
    true if the property change is cancellable by setting Cancel to true in event handling. false if the property change is not cancellable.

Remarks

The default value for Cancel is false in a new instance.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.