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
GroupName
获取或设置对象的分组名称。
[JsonIgnore]
[Browsable(false)]
public virtual string GroupName { get; set; }
Property Value
ID
获取或设置对象的唯一标识符。
[Browsable(false)]
public virtual string ID { get; set; }
Property Value
Icon
获取或设置对象的图标。
[Browsable(false)]
[Display(Name = "图标", GroupName = "常用")]
public virtual string Icon { get; set; }
Property Value
IsLoaded
获取或设置一个值,指示对象是否已加载。
[Browsable(false)]
[JsonIgnore]
public bool IsLoaded { get; set; }
Property Value
LoadDefaultCommand
获取加载默认值的命令。
[JsonIgnore]
[Display(Name = "恢复默认")]
[Browsable(false)]
public virtual RelayCommand LoadDefaultCommand { get; }
Property Value
Name
获取或设置对象的名称。
[Browsable(false)]
public virtual string Name { get; set; }
Property Value
Order
获取或设置对象的顺序。
[JsonIgnore]
[Browsable(false)]
public virtual int Order { get; set; }
Property Value
ShortName
获取或设置对象的简称。
[JsonIgnore]
[Browsable(false)]
public virtual string ShortName { get; set; }
Property Value
Methods
LoadDefault()
加载默认值。
public virtual void LoadDefault()
Loaded(object)
当对象加载完成时调用。
protected override void Loaded(object obj)
Parameters
obj
object加载完成的对象。