Table of Contents

Class CommandContext

Namespace
The.Web.Pages
Assembly
Instagile.Web.Client.dll
public class CommandContext : INotifyCollectionChanged
Inheritance
CommandContext
Implements
Inherited Members

Properties

CanCreate

public bool CanCreate { get; }

Property Value

bool

CanDelete

public bool CanDelete { get; }

Property Value

bool

IsRoot

public bool IsRoot { get; }

Property Value

bool

ProgressHost

public IProgressHost ProgressHost { get; set; }

Property Value

IProgressHost

ValidationContext

public ValidationContext? ValidationContext { get; }

Property Value

ValidationContext

Methods

Embedded(string, IProperty?, bool, bool)

public static CommandContext Embedded(string name, IProperty? container, bool canCreate, bool canDelete)

Parameters

name string
container IProperty
canCreate bool
canDelete bool

Returns

CommandContext

GetCommands()

public Result<IReadOnlyList<Command>, Exception> GetCommands()

Returns

Result<IReadOnlyList<Command>, Exception>

GetModal(string)

public (ModalRegistration Modal, string Route)? GetModal(string key)

Parameters

key string

Returns

(ModalRegistration Modal, string Route)?

RaiseCanExecuteChanged()

public void RaiseCanExecuteChanged()

Restrict(bool?, bool?, bool?)

public CommandContext Restrict(bool? isRoot = null, bool? canCreate = null, bool? canDelete = null)

Parameters

isRoot bool?
canCreate bool?
canDelete bool?

Returns

CommandContext

Root(string, bool, bool)

public static CommandContext Root(string name, bool canCreate, bool canDelete)

Parameters

name string
canCreate bool
canDelete bool

Returns

CommandContext

SetModal(string, ModalRegistration, string)

public void SetModal(string key, ModalRegistration modal, string route)

Parameters

key string
modal ModalRegistration
route string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Events

CanExecuteChanged

public event Action? CanExecuteChanged

Event Type

Action

CollectionChanged

Occurs when the collection changes.

public event NotifyCollectionChangedEventHandler? CollectionChanged

Event Type

NotifyCollectionChangedEventHandler