HtmlEventArgs.PreventDefault Method

Silverlight

Specifies that the associated Document Object Model (DOM) element should not perform the default action for the current event.

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

[SecuritySafeCriticalAttribute]
public void PreventDefault()

ExceptionCondition
InvalidOperationException

An unexpected error occurred.

This method mirrors calling event.returnValue = false in Internet Explorer.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show: