C# Class Catel.Examples.WPF.PersonApplication.ViewModels.PersonViewModel

Person view model.
Inheritance: MVVM.ViewModelBase
Afficher le fichier Open project: Catel/Catel.Examples Class Usage Examples

Méthodes publiques

Свойство Type Description
CustomErrorProperty PropertyData
GenderProperty PropertyData
LastNameProperty PropertyData
PersonProperty PropertyData

Private Properties

Свойство Type Description
OnGenerateDataCanExecute bool
OnGenerateDataExecute void
OnToggleCustomErrorExecute void

Méthodes publiques

Méthode Description
PersonViewModel ( Person person ) : System.Collections.Generic

Initializes a new instance of the PersonViewModel class.

Méthodes protégées

Méthode Description
ValidateFields ( List validationResults ) : void

Validates the field values of this object. Override this method to enable validation of field values.

Private Methods

Méthode Description
OnGenerateDataCanExecute ( object parameter ) : bool

Method to check whether the GenerateData command can be executed.

OnGenerateDataExecute ( object parameter ) : void

Method to invoke when the GenerateData command is executed.

OnToggleCustomErrorExecute ( object parameter ) : void

Method to invoke when the ToggleCustomError command is executed.

Method Details

PersonViewModel() public méthode

Initializes a new instance of the PersonViewModel class.
public PersonViewModel ( Person person ) : System.Collections.Generic
person Person The person.
Résultat System.Collections.Generic

ValidateFields() protected méthode

Validates the field values of this object. Override this method to enable validation of field values.
protected ValidateFields ( List validationResults ) : void
validationResults List The validation results, add additional results to this list.
Résultat void

Property Details

CustomErrorProperty public_oe static_oe property

Register the CustomError property so it is known in the class.
public static PropertyData CustomErrorProperty
Résultat PropertyData

GenderProperty public_oe static_oe property

Register the Gender property so it is known in the class.
public static PropertyData GenderProperty
Résultat PropertyData

LastNameProperty public_oe static_oe property

Register the LastName property so it is known in the class.
public static PropertyData LastNameProperty
Résultat PropertyData

PersonProperty public_oe static_oe property

Register the Person property so it is known in the class.
public static PropertyData PersonProperty
Résultat PropertyData