Table of Contents

Class MvcViewModelBase

Namespace
HeBianGu.Service.Mvc
Assembly
HeBianGu.Service.Mvc.dll
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

RelayCommand<string>

GoToActionCommand

跳转到Action页面

public RelayCommand<string> GoToActionCommand { get; }

Property Value

RelayCommand<string>

GoToLinkCommand

跳转到Link页面

public RelayCommand<ILinkAction> GoToLinkCommand { get; }

Property Value

RelayCommand<ILinkAction>

IsAuthority

public bool IsAuthority { get; }

Property Value

bool

LinkActions

说明

public ObservableCollection<ILinkAction> LinkActions { get; set; }

Property Value

ObservableCollection<ILinkAction>

Navigation

导航索引

public ObservableCollection<ILinkAction> Navigation { get; set; }

Property Value

ObservableCollection<ILinkAction>

说明

public ILinkAction SelectLink { get; set; }

Property Value

ILinkAction

Methods

CanLoaded(string)

protected virtual bool CanLoaded(string args)

Parameters

args string

Returns

bool

GetController()

获取控制器名称

public string GetController()

Returns

string

GetLinkAction(string)

获取当前LinkAction

public ILinkAction GetLinkAction(string action)

Parameters

action string

Returns

ILinkAction
protected void GoToLink(string action)

Parameters

action string
protected void GoToLink(string controller, string action)

Parameters

controller string
action string

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