ICollectionView.CurrentChanging Event

Occurs before the current item changes.

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

Syntax

'Declaration
Event CurrentChanging As CurrentChangingEventHandler
event CurrentChangingEventHandler CurrentChanging

Remarks

Classes that implement this interface should raise the CurrentChanging event and check the IsCancelable and Cancel properties of the CurrentChangingEventArgs before changing the CurrentItem and raising the CurrentChanged event.

The ICollectionView implementation specifies whether to enable cancellation of the CurrentItem change in a CurrentChanging event handler.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

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