Freigeben über


ValidationSummary.FocusControlsOnClick Property

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

Gets or sets a value that indicates whether focus is set on the input control when an error message is clicked.

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

Syntax

'Declaration
Public Property FocusControlsOnClick As Boolean
public bool FocusControlsOnClick { get; set; }
<sdk:ValidationSummary FocusControlsOnClick="bool"/>

Property Value

Type: System.Boolean
true if focus is set on the input control when an error message is clicked; otherwise, false. The default is true.

Remarks

Dependency property identifier field: FocusControlsOnClickProperty

By default, when an error message is selected in the ValidationSummary, it attempts to set focus on the control where the error originated. You can disable this behavior by setting the FocusControlsOnClick property to false.

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.