ListBoxValidationRole class

Represents a validation rule for ListBox controls.

Inherits from

Neurodot.Forms.Silverlight.Controls. LocalizableValidationRole

Syntax

public class ListBoxValidationRole : LocalizableValidationRole

Properties

Name Description
MaximumSelected Gets or sets the maximum number of selected items.
MinimumSelected Gets or sets the minimum number of selected items.

 

Methods

Name Description
Validate(object) Validates assigned control and raises or hides validation error on the control.

 

Remarks

The Validate(object) method checks whether the number of selected items in a ListBox control is not less than MinimumSelected and not more than MaximumSelected if the values of those properties are set.

See methods RegisterValidationRole and RemoveValidationRole for details on how to assign custom validations to controls.