Table of Contents

Class DelegateMenuBuilder

Namespace
The.WPF.Shell
Assembly
Instagile.WPF.dll
public sealed class DelegateMenuBuilder : IMenuBuilder, ISubmenuBuilder
Inheritance
DelegateMenuBuilder
Implements
Inherited Members
Extension Methods

Constructors

DelegateMenuBuilder(Action<string, Action<IServices>, Func<IServices, bool>>, Action<string, Func<IServices, Task>, Func<IServices, bool>>, Func<string, ISubmenuBuilder>)

public DelegateMenuBuilder(Action<string, Action<IServices>, Func<IServices, bool>> addSyncCommand, Action<string, Func<IServices, Task>, Func<IServices, bool>> addAsyncCommand, Func<string, ISubmenuBuilder> addGroup)

Parameters

addSyncCommand Action<string, Action<IServices>, Func<IServices, bool>>
addAsyncCommand Action<string, Func<IServices, Task>, Func<IServices, bool>>
addGroup Func<string, ISubmenuBuilder>

Methods

AddCustomCommand(string, Action<IServices>, Func<IServices, bool>)

public void AddCustomCommand(string title, Action<IServices> f, Func<IServices, bool> accessPredicate = null)

Parameters

title string
f Action<IServices>
accessPredicate Func<IServices, bool>

AddCustomCommand(string, Func<IServices, Task>, Func<IServices, bool>)

public void AddCustomCommand(string title, Func<IServices, Task> f, Func<IServices, bool> accessPredicate = null)

Parameters

title string
f Func<IServices, Task>
accessPredicate Func<IServices, bool>

AddGroup(string)

public ISubmenuBuilder AddGroup(string title)

Parameters

title string

Returns

ISubmenuBuilder