Table of Contents

Class DisplayBindableBase

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

提供显示相关功能的可绑定基类。

public abstract class DisplayBindableBase : CommandsBindableBase, INotifyPropertyChanged, IDisplayBindable, IIconable, INameable, IOrderable, IGroupable, IDable, IDescriptionable
Inheritance
DisplayBindableBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

DisplayBindableBase()

初始化 DisplayBindableBase 类的新实例。

public DisplayBindableBase()

Properties

Description

获取或设置对象的描述。

[JsonIgnore]
[Browsable(false)]
public virtual string Description { get; set; }

Property Value

string

GroupName

获取或设置对象的分组名称。

[JsonIgnore]
[Browsable(false)]
public virtual string GroupName { get; set; }

Property Value

string

ID

获取或设置对象的唯一标识符。

[Browsable(false)]
public virtual string ID { get; set; }

Property Value

string

Icon

获取或设置对象的图标。

[Browsable(false)]
[Display(Name = "图标", GroupName = "常用")]
public virtual string Icon { get; set; }

Property Value

string

IsLoaded

获取或设置一个值,指示对象是否已加载。

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

Property Value

bool

LoadDefaultCommand

获取加载默认值的命令。

[JsonIgnore]
[Display(Name = "恢复默认")]
[Browsable(false)]
public virtual RelayCommand LoadDefaultCommand { get; }

Property Value

RelayCommand

Name

获取或设置对象的名称。

[Browsable(false)]
public virtual string Name { get; set; }

Property Value

string

Order

获取或设置对象的顺序。

[JsonIgnore]
[Browsable(false)]
public virtual int Order { get; set; }

Property Value

int

ShortName

获取或设置对象的简称。

[JsonIgnore]
[Browsable(false)]
public virtual string ShortName { get; set; }

Property Value

string

Methods

LoadDefault()

加载默认值。

public virtual void LoadDefault()

Loaded(object)

当对象加载完成时调用。

protected override void Loaded(object obj)

Parameters

obj object

加载完成的对象。