Table of Contents

Class CreateModalController<T>

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll
public class CreateModalController<T> : ModalControllerBase<CreateModel<T>, CreateView, T>, IModalController<T> where T : IEntity<T>

Type Parameters

T
Inheritance
CreateModalController<T>
Implements
Inherited Members

Constructors

CreateModalController(IServices, Func<IPrincipal, Task<T>>)

public CreateModalController(IServices services, Func<IPrincipal, Task<T>> entityFactory)

Parameters

services IServices
entityFactory Func<IPrincipal, Task<T>>

Properties

ContentReady

public Task ContentReady { get; }

Property Value

Task

Entity

protected T Entity { get; }

Property Value

T

Methods

Cancel()

public void Cancel()

ConfirmAsync(CreateModel<T>)

public Task ConfirmAsync(CreateModel<T> vm)

Parameters

vm CreateModel<T>

Returns

Task

CreateContentSubcontroller(T)

protected virtual ContentControllerBase<T> CreateContentSubcontroller(T entity)

Parameters

entity T

Returns

ContentControllerBase<T>

CreateUninitialisedModel(ISurface)

protected override CreateModel<T> CreateUninitialisedModel(ISurface s)

Parameters

s ISurface

Returns

CreateModel<T>

InitialiseModel(CreateModel<T>)

protected override void InitialiseModel(CreateModel<T> vm)

Parameters

vm CreateModel<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.

OnConfirmAsync()

protected virtual Task OnConfirmAsync()

Returns

Task

OnCreated()

protected virtual void OnCreated()

OnCreatedAsync()

protected virtual Task OnCreatedAsync()

Returns

Task

OnLoaded()

protected virtual void OnLoaded()

OnLoadedAsync()

protected virtual Task OnLoadedAsync()

Returns

Task

OnModelCreated()

protected override void OnModelCreated()