Partager via


FocusingInvalidControlEventArgs.Handled Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that indicates whether setting the focus was handled.

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

Syntax

'Declaration
Public Property Handled As Boolean
public bool Handled { get; set; }

Property Value

Type: System.Boolean
true if setting the focus was handled; otherwise, false. The default is false.

Remarks

You can handle setting the focus to the target control in your application code. In this case, set the Handled property to true to prevent the ValidationSummary control from setting focus.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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