C# Class MVVMSidekick.ViewModels.BindableBase

Inheritance: DisposeGroupBase, INotifyPropertyChanged, IBindable
Exibir arquivo Open project: waynebaby/MVVM-Sidekick Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

public BindableBase ( ) : MVVMSidekick.EventRouting
return MVVMSidekick.EventRouting

Dispose() protected method

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.
return void

GetFieldNames() public abstract method

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

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

public abstract GetFieldNames ( ) : string[]
return string[]

GetValueContainer() public abstract method

public abstract GetValueContainer ( string propertyName ) : IValueContainer
propertyName string
return IValueContainer

RaiseErrorsChanged() protected method

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

RaisePropertyChanged() protected method

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

SetErrorMessage() protected abstract method

Sets the validate error of this model

设置错误内容

protected abstract SetErrorMessage ( string value ) : void
value string The value.
return void

SetErrorMessageAndTryNotify() protected abstract method

Sets the validate error of this model and notify

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

protected abstract SetErrorMessageAndTryNotify ( string value ) : void
value string The value.
return void

this() public abstract method

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/字段名
return object