Table of Contents

Class SearchModalController<T>

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll
public class SearchModalController<T> : ModalControllerBase<SearchModalModel<T>, SearchView, T>, IModalController<T> where T : IEntity<T>

Type Parameters

T
Inheritance
SearchModalController<T>
Implements
Inherited Members

Constructors

SearchModalController(IServices, Func<IEntityContext, IEntityQuery<T>>, Action<SearchOptions>?)

public SearchModalController(IServices services, Func<IEntityContext, IEntityQuery<T>> queryFactory, Action<SearchOptions>? configure)

Parameters

services IServices
queryFactory Func<IEntityContext, IEntityQuery<T>>
configure Action<SearchOptions>

Methods

Cancel()

public void Cancel()

CreateSearchSubcontroller(Func<IEntityContext, IEntityQuery<T>>, Action<SearchOptions>?)

protected virtual SearchController<T> CreateSearchSubcontroller(Func<IEntityContext, IEntityQuery<T>> queryFactory, Action<SearchOptions>? configure)

Parameters

queryFactory Func<IEntityContext, IEntityQuery<T>>
configure Action<SearchOptions>

Returns

SearchController<T>

CreateUninitialisedModel(ISurface)

protected override SearchModalModel<T> CreateUninitialisedModel(ISurface s)

Parameters

s ISurface

Returns

SearchModalModel<T>

InitialiseModel(SearchModalModel<T>)

protected override void InitialiseModel(SearchModalModel<T> vm)

Parameters

vm SearchModalModel<T>

OnCompleted()

This handler is invoked after the modal completes which could be due to it completing with a result or due to it being cancelled. This method should only perform cleanup of event handlers and similar.

protected override void OnCompleted()

Remarks

See OnConfirmAsync() and OnConfirmAsync() for an appropriate place to put business logic that should run immediately before confirming this modal.

OnModelCreated()

protected override void OnModelCreated()

Select()

public void Select()

SelectIfAny()

public void SelectIfAny()