Skip to main content

ActiveView class

Namespace: Arlecchino.Navigation · Assembly: Arlecchino

A screen together with the container scope it was built from. Navigating away disposes the screen and then the scope, so whatever it took from the container goes with it.

public sealed class ActiveView : IDisposable

Implements IDisposable

Constructors

MemberSummary
ActiveView(IArlecchinoView, IServiceScope)Pairs a screen with its scope.

Properties

MemberSummary
ViewThe screen being shown.

Methods

MemberSummary
Dispose()Disposes the screen if it asked to be, then the scope behind it.

Constructors in detail

ActiveView(IArlecchinoView, IServiceScope)

public ActiveView(IArlecchinoView view, IServiceScope scope);

Pairs a screen with its scope.

Parameters

NameTypeDescription
viewIArlecchinoViewThe screen.
scopeIServiceScopeThe scope it was built from.

Properties in detail

View

public IArlecchinoView View { get; }

The screen being shown.

Type IArlecchinoView

Methods in detail

Dispose()

public void Dispose();

Disposes the screen if it asked to be, then the scope behind it.