Home Notices Documents Classes Download Others Rice
Classes  >  navigatingeventargs  >  Cancel(bool)
navigatingeventargs class : Cancel(bool) setter

Description

Sets a value indicating whether the event should be canceled.

Syntax

navigatingeventargsInstance.Cancel = cancel

Arguments

ClassNameDescription
boolcancelA value indicating whether the event should be canceled.

Return value

None

Sample code

1:

open method void anyNavigatingHandler(navigatingeventargs nea)

2:

...

3:

nea.Cancel = true; // The navigation will be canceled.

4:

...

5:

endmethod

Notes

When want to cancel the event, set true. When do not want to cancel, set false.

Default value is false.

The navigatingeventargs will appear as an argument of the navigating event handler.

Links for reference

None.

Copyright © Rice All rights reserved.