Class MvcViewModelBase
public abstract class MvcViewModelBase : DisplayerViewModelBase, INotifyPropertyChanged, IDisplayer, IMvcViewModelBase, IAuthority
- Inheritance
-
MvcViewModelBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
DoActionCommand
执行异步操作操作
public RelayCommand<string> DoActionCommand { get; }
Property Value
GoToActionCommand
跳转到Action页面
public RelayCommand<string> GoToActionCommand { get; }
Property Value
GoToLinkCommand
跳转到Link页面
public RelayCommand<ILinkAction> GoToLinkCommand { get; }
Property Value
IsAuthority
public bool IsAuthority { get; }
Property Value
LinkActions
说明
public ObservableCollection<ILinkAction> LinkActions { get; set; }
Property Value
Navigation
导航索引
public ObservableCollection<ILinkAction> Navigation { get; set; }
Property Value
SelectLink
说明
public ILinkAction SelectLink { get; set; }
Property Value
Methods
CanLoaded(string)
protected virtual bool CanLoaded(string args)
Parameters
args
string
Returns
GetController()
获取控制器名称
public string GetController()
Returns
GetLinkAction(string)
获取当前LinkAction
public ILinkAction GetLinkAction(string action)
Parameters
action
string
Returns
GoToLink(string)
protected void GoToLink(string action)
Parameters
action
string
GoToLink(string, string)
protected void GoToLink(string controller, string action)
Parameters
Invoke(Action)
使用主线程运行
public void Invoke(Action action)
Parameters
action
Action
Loaded(string)
protected virtual void Loaded(string args)
Parameters
args
string
RunAsync(Action)
异步运行
public void RunAsync(Action action)
Parameters
action
Action