Table of Contents

Method OnCurrentChanging

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

OnCurrentChanging()

Raise a CurrentChanging event that is not cancelable. Internally, CurrentPosition is set to -1. This is called by CollectionChanges (Remove and Refresh) that affect the CurrentItem.

protected void OnCurrentChanging()

Exceptions

InvalidOperationException

This CurrentChanging event cannot be canceled.

OnCurrentChanging(CurrentChangingEventArgs)

Raises the CurrentChanging event

protected virtual void OnCurrentChanging(CurrentChangingEventArgs args)

Parameters

args CurrentChangingEventArgs

CancelEventArgs used by the consumer of the event. args.Cancel will be true after this call if the CurrentItem should not be changed for any reason.

Exceptions

InvalidOperationException

This CurrentChanging event cannot be canceled.