Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValidationSummary.FocusingInvalidControl Event

Silverlight

Occurs when an error in the error summary list is clicked.

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

'Declaration
Public Event FocusingInvalidControl As EventHandler(Of FocusingInvalidControlEventArgs)
<sdk:ValidationSummary FocusingInvalidControl="eventhandler"/>

By default, when an error message is selected in the ValidationSummary list, it attempts to set focus on the control where the error originated. You can disable this behavior by setting the FocusControlsOnClick property to false. Alternatively, you can change the focusing behavior by handling the FocusingInvalidControl event and implementing custom focusing behavior. When you handle this event, you set the FocusingInvalidControlEventArgs.Handled property to true to prevent the control from attempting to set focus.

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

Show:
© 2017 Microsoft