Table of Contents

Class Bindable

Namespace
H.Mvvm.ViewModels.Base
Assembly
H.Mvvm.dll

可绑定的基类。

public abstract class Bindable : BindableBase, INotifyPropertyChanged
Inheritance
Bindable
Implements
Derived
Inherited Members
Extension Methods

Constructors

Bindable()

构造函数。

public Bindable()

Properties

CallMethodCommand

[Browsable(false)]
[JsonIgnore]
public RelayCommand CallMethodCommand { get; set; }

Property Value

RelayCommand

LoadedCommand

[Browsable(false)]
[JsonIgnore]
public RelayCommand LoadedCommand { get; }

Property Value

RelayCommand

RelayCommand

[Browsable(false)]
[JsonIgnore]
public RelayCommand RelayCommand { get; set; }

Property Value

RelayCommand

Methods

CallMethod(object)

调用方法。

protected virtual void CallMethod(object obj)

Parameters

obj object

方法名。

GetTargetElement<T>()

protected T GetTargetElement<T>() where T : UIElement

Returns

T

Type Parameters

T

Loaded(object)

加载事件处理方法。

protected virtual void Loaded(object obj)

Parameters

obj object

事件参数。

RelayMethod(object)

用于继承类中的方法绑定。

protected virtual void RelayMethod(object obj)

Parameters

obj object

方法参数。