Table of Contents

Class DisplayModalController<T>

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll
public class DisplayModalController<T> : ModalControllerBase<DisplayModel<T>, DisplayView, T>, IModalController<T> where T : IEntity<T>

Type Parameters

T
Inheritance
DisplayModalController<T>
Implements
Inherited Members

Constructors

DisplayModalController(IServices, bool, T)

public DisplayModalController(IServices services, bool isEditable, T clonee)

Parameters

services IServices
isEditable bool
clonee T

Fields

Editable

protected readonly bool Editable

Field Value

bool

Entity

protected readonly T Entity

Field Value

T

Methods

CreateContentSubcontroller()

protected virtual ContentControllerBase<T> CreateContentSubcontroller()

Returns

ContentControllerBase<T>

CreateUninitialisedModel(ISurface)

protected override DisplayModel<T> CreateUninitialisedModel(ISurface s)

Parameters

s ISurface

Returns

DisplayModel<T>

InitialiseModel(DisplayModel<T>)

protected override void InitialiseModel(DisplayModel<T> vm)

Parameters

vm DisplayModel<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

OnModelCreated()

protected override void OnModelCreated()