ValidatingSelectorValue<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The ValidatingSelectorValue class provides support for selecting a value from a collection of available values.
generic <typename T>
public ref class ValidatingSelectorValue : Microsoft::Management::UI::Internal::ValidatingValueBase
template <typename T>
[Windows::Foundation::Metadata::WebHostHidden]
class ValidatingSelectorValue : Microsoft::Management::UI::Internal::ValidatingValueBase
[System.Serializable]
public class ValidatingSelectorValue<T> : Microsoft.Management.UI.Internal.ValidatingValueBase
[<System.Serializable>]
type ValidatingSelectorValue<'T> = class
inherit ValidatingValueBase
Public Class ValidatingSelectorValue(Of T)
Inherits ValidatingValueBase
Type Parameters
- T
The generic parameter.
- Inheritance
- Attributes
Constructors
ValidatingSelectorValue<T>() |
Properties
AvailableValues |
Gets the collection of values available for selection. |
DisplayNameConverter |
Gets or sets the converter used to display a friendly value to the user. |
Error |
Gets an error message indicating what is wrong with this object. (Inherited from ValidatingValueBase) |
IsValid |
Gets a value indicating whether the value is valid. (Inherited from ValidatingValueBase) |
Item[String] |
Gets the error message for the property with the given name. (Inherited from ValidatingValueBase) |
SelectedIndex |
Gets or sets the index of the currently selected item or returns negative one (-1) if the selection is empty. |
SelectedValue |
Gets the item within AvailableValues at the offset indicated by SelectedIndex or returns default(T) if the selection is empty. |
ValidationRules |
Gets the collection of validation rules used to validate the value. (Inherited from ValidatingValueBase) |
Methods
AddValidationRule(DataErrorInfoValidationRule) |
Adds a validation rule to the ValidationRules collection. (Inherited from ValidatingValueBase) |
ClearValidationRules() |
Clears the ValidationRules collection. (Inherited from ValidatingValueBase) |
InvalidateValidationResult() |
Calling InvalidateValidationResult causes the Validation to be reevaluated. (Inherited from ValidatingValueBase) |
NotifyPropertyChanged(String) |
Notifies listeners that a property has changed. (Inherited from ValidatingValueBase) |
NotifySelectedValueChanged(T, T) |
Notifies listeners that the selected value with the available values has changed. |
RemoveValidationRule(DataErrorInfoValidationRule) |
Removes a validation rule from the ValidationRules collection. (Inherited from ValidatingValueBase) |
Validate() |
Called to validate the entire object. |
Validate(String) |
Called to validate the property with the given name. |
Events
PropertyChanged |
Occurs when a property value changes. (Inherited from ValidatingValueBase) |
SelectedValueChanged |
Notifies listeners that the selected value has changed. |