C# Class MVVMSidekick.ViewModels.BindableBase

Inheritance: DisposeGroupBase, INotifyPropertyChanged, IBindable
Afficher le fichier Open project: waynebaby/MVVM-Sidekick Class Usage Examples

Méthodes publiques

Méthode Description
BindableBase ( ) : MVVMSidekick.EventRouting
GetFieldNames ( ) : string[]

Get all property names that were defined in subtype, or added objectly in runtime

取得本VM实例已经定义的所有字段名。其中包括静态声明的和动态添加的。

GetValueContainer ( string propertyName ) : IValueContainer
this ( string name ) : object

Gets or sets poperty values by property name index.

使用索引方式取得/设置字段值

Gets or sets the System.Object with the specified name.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

RaiseErrorsChanged ( string propertName ) : void

Raises the errors changed.

RaisePropertyChanged ( Func lazyEAFactory ) : void

Raises the property changed.

SetErrorMessage ( string value ) : void

Sets the validate error of this model

设置错误内容

SetErrorMessageAndTryNotify ( string value ) : void

Sets the validate error of this model and notify

设置错误内容并且尝试用事件通知

Method Details

BindableBase() public méthode

public BindableBase ( ) : MVVMSidekick.EventRouting
Résultat MVVMSidekick.EventRouting

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

GetFieldNames() public abstract méthode

Get all property names that were defined in subtype, or added objectly in runtime

取得本VM实例已经定义的所有字段名。其中包括静态声明的和动态添加的。

public abstract GetFieldNames ( ) : string[]
Résultat string[]

GetValueContainer() public abstract méthode

public abstract GetValueContainer ( string propertyName ) : IValueContainer
propertyName string
Résultat IValueContainer

RaiseErrorsChanged() protected méthode

Raises the errors changed.
protected RaiseErrorsChanged ( string propertName ) : void
propertName string Name of the propert.
Résultat void

RaisePropertyChanged() protected méthode

Raises the property changed.
protected RaisePropertyChanged ( Func lazyEAFactory ) : void
lazyEAFactory Func The lazy ea factory.
Résultat void

SetErrorMessage() protected abstract méthode

Sets the validate error of this model

设置错误内容

protected abstract SetErrorMessage ( string value ) : void
value string The value.
Résultat void

SetErrorMessageAndTryNotify() protected abstract méthode

Sets the validate error of this model and notify

设置错误内容并且尝试用事件通知

protected abstract SetErrorMessageAndTryNotify ( string value ) : void
value string The value.
Résultat void

this() public abstract méthode

Gets or sets poperty values by property name index.

使用索引方式取得/设置字段值

Gets or sets the System.Object with the specified name.
public abstract this ( string name ) : object
name string Property name/字段名
Résultat object