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
| Member | Summary |
|---|---|
ActiveView(IArlecchinoView, IServiceScope) | Pairs a screen with its scope. |
Properties
| Member | Summary |
|---|---|
View | The screen being shown. |
Methods
| Member | Summary |
|---|---|
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
| Name | Type | Description |
|---|---|---|
view | IArlecchinoView | The screen. |
scope | IServiceScope | The 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.