Class CommandsBindableBase
- Namespace
- H.Mvvm.ViewModels.Base
- Assembly
- H.Mvvm.dll
提供了创建命令的基类,用于绑定到视图模型。
public abstract class CommandsBindableBase : Bindable, INotifyPropertyChanged
- Inheritance
-
CommandsBindableBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
CommandsBindableBase()
初始化 CommandsBindableBase 类的新实例。
public CommandsBindableBase()
Properties
Commands
获取命令的集合。
[Browsable(false)]
[JsonIgnore]
public ObservableCollection<ICommand> Commands { get; }
Property Value
Methods
CreateCommands()
创建命令的方法,派生类可以重写此方法以创建自定义命令。
protected virtual IEnumerable<IDisplayCommand> CreateCommands()
Returns
- IEnumerable<IDisplayCommand>
命令的集合。