Table of Contents

Class ProgressController<T>

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll
public class ProgressController<T> : SimpleModalControllerBase<ProgressModel, ProgressView, T>, IModalController<T>

Type Parameters

T
Inheritance
ProgressController<T>
Implements
Derived
Inherited Members

Constructors

ProgressController(IServices, string, Func<IProgress<Status>, CancellationToken, Task<T>>, bool, bool)

public ProgressController(IServices services, string title, Func<IProgress<Status>, CancellationToken, Task<T>> monitoredFunction, bool shouldCloseWhenComplete, bool batchUIUpdates = true)

Parameters

services IServices
title string
monitoredFunction Func<IProgress<Status>, CancellationToken, Task<T>>
shouldCloseWhenComplete bool
batchUIUpdates bool

Methods

CreateModel(ISurface)

protected override ProgressModel CreateModel(ISurface s)

Parameters

s ISurface

Returns

ProgressModel

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()