Export (0) Print
Expand All

ValidationSummaryItem Class

Silverlight

Represents an individual validation error.

System.Object
  System.Windows.Controls.ValidationSummaryItem

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

public class ValidationSummaryItem : INotifyPropertyChanged

The ValidationSummaryItem type exposes the following members.

  NameDescription
Public methodValidationSummaryItem()Initializes a new instance of the ValidationSummaryItem class.
Public methodValidationSummaryItem(String)Initializes a new instance of the ValidationSummaryItem class with the specified error message.
Public methodValidationSummaryItem(String, String, ValidationSummaryItemType, ValidationSummaryItemSource, Object)Initializes a new instance of the ValidationSummaryItem class with the specified error message, header, item type, source, and context.
Top

  NameDescription
Public propertyContextGets or sets the object that is the context in which the error occurred.
Public propertyItemTypeGets a value that specifies whether the error originated from an object or a property.
Public propertyMessageGets or sets the text of the error message.
Public propertyMessageHeaderGets or sets the text of the error message header.
Public propertySourcesGets the sources of the validation errors.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringThe string representation of this ValidationSummaryItem. (Overrides Object.ToString().)
Top

  NameDescription
Public eventPropertyChangedOccurs when a property value for this ValidationSummaryItem changes.
Top

A ValidationSummaryItem tracks the error, the associated control, and the associated field.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft