Table of Contents

Method AddMenuWithShowList

Namespace
Innova.Prism.Library.Controls.Menu
Assembly
Innova.Prism.Library.dll

AddMenuWithShowList<TEntity>(IOutlookBarMenuBuilder, Expression<Func<TEntity, bool>>)

Adds a menu item with a show list to the OutlookBar menu builder for the specified entity type.

public static IOutlookBarMenuBuilder AddMenuWithShowList<TEntity>(this IOutlookBarMenuBuilder menuBuilder, Expression<Func<TEntity, bool>> filter) where TEntity : class

Parameters

menuBuilder IOutlookBarMenuBuilder

The OutlookBar menu builder.

filter Expression<Func<TEntity, bool>>

The filter expression for the show list.

Returns

IOutlookBarMenuBuilder

The OutlookBar menu builder.

Type Parameters

TEntity

The type of the entity.

AddMenuWithShowList<TEntity>(IOutlookBarMenuBuilder, Expression<Func<TEntity, bool>>, int)

Adds a menu item with a show list to the OutlookBar menu builder for the specified entity type with the specified sort order.

public static IOutlookBarMenuBuilder AddMenuWithShowList<TEntity>(this IOutlookBarMenuBuilder menuBuilder, Expression<Func<TEntity, bool>> filter, int sortOrder) where TEntity : class

Parameters

menuBuilder IOutlookBarMenuBuilder

The OutlookBar menu builder.

filter Expression<Func<TEntity, bool>>

The filter expression for the show list.

sortOrder int

The sort order of the menu item.

Returns

IOutlookBarMenuBuilder

The OutlookBar menu builder.

Type Parameters

TEntity

The type of the entity.

AddMenuWithShowList<TEntity>(IOutlookBarMenuBuilder, int)

Adds a menu item with a show list to the OutlookBar menu builder for the specified entity type with the specified sort order.

public static IOutlookBarMenuBuilder AddMenuWithShowList<TEntity>(this IOutlookBarMenuBuilder menuBuilder, int sortOrder) where TEntity : class

Parameters

menuBuilder IOutlookBarMenuBuilder

The OutlookBar menu builder.

sortOrder int

The sort order of the menu item.

Returns

IOutlookBarMenuBuilder

The OutlookBar menu builder.

Type Parameters

TEntity

The type of the entity.

AddMenuWithShowList<TEntity>(IOutlookBarMenuBuilder, Action<MenuItemViewModelWithShowList<TEntity>>)

Adds a menu item with a show list to the OutlookBar menu builder for the specified entity type.

public static IOutlookBarMenuBuilder AddMenuWithShowList<TEntity>(this IOutlookBarMenuBuilder menuBuilder, Action<MenuItemViewModelWithShowList<TEntity>> action = null) where TEntity : class

Parameters

menuBuilder IOutlookBarMenuBuilder

The OutlookBar menu builder.

action Action<MenuItemViewModelWithShowList<TEntity>>

The action to configure the menu item.

Returns

IOutlookBarMenuBuilder

The OutlookBar menu builder.

Type Parameters

TEntity

The type of the entity.