C# Класс Catel.Examples.WPF.PersonApplication.ViewModels.PersonViewModel

Person view model.
Наследование: MVVM.ViewModelBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CustomErrorProperty PropertyData
GenderProperty PropertyData
LastNameProperty PropertyData
PersonProperty PropertyData

Private Properties

Свойство Тип Описание
OnGenerateDataCanExecute bool
OnGenerateDataExecute void
OnToggleCustomErrorExecute void

Открытые методы

Метод Описание
PersonViewModel ( Person person ) : System.Collections.Generic

Initializes a new instance of the PersonViewModel class.

Защищенные методы

Метод Описание
ValidateFields ( List validationResults ) : void

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

Приватные методы

Метод Описание
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.

Описание методов

PersonViewModel() публичный Метод

Initializes a new instance of the PersonViewModel class.
public PersonViewModel ( Person person ) : System.Collections.Generic
person Person The person.
Результат System.Collections.Generic

ValidateFields() защищенный Метод

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.
Результат void

Описание свойств

CustomErrorProperty публичное статическое свойство

Register the CustomError property so it is known in the class.
public static PropertyData CustomErrorProperty
Результат PropertyData

GenderProperty публичное статическое свойство

Register the Gender property so it is known in the class.
public static PropertyData GenderProperty
Результат PropertyData

LastNameProperty публичное статическое свойство

Register the LastName property so it is known in the class.
public static PropertyData LastNameProperty
Результат PropertyData

PersonProperty публичное статическое свойство

Register the Person property so it is known in the class.
public static PropertyData PersonProperty
Результат PropertyData