Compartir a través de


ValidationSummary.Filter Property

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

Gets or sets a value that indicates which types of errors are displayed.

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

Syntax

'Declaration
Public Property Filter As ValidationSummaryFilters
public ValidationSummaryFilters Filter { get; set; }
<sdk:ValidationSummary Filter="validationSummaryFilter"/>

XAML Values

Property Value

Type: System.Windows.Controls.ValidationSummaryFilters
One of the enumeration values that indicates which types of errors are displayed. The default is All.

Remarks

Dependency property identifier field: FilterProperty

By default, the ValidationSummary displays both object and property level errors. You can specify the type of errors displayed by setting the Filter property to one of the ValidationSummaryFilters enumeration values. For example, if property level errors are already displayed by individual controls on the form, you can set the ValidationSummary to only display the object level errors.

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.