Table of Contents

Class SidebarControllerBase<TModel, TView>

Namespace
The.WPF.Sidebars
Assembly
Instagile.WPF.dll
public abstract class SidebarControllerBase<TModel, TView> : ISidebarController where TModel : class, ISidebarModel where TView : Control

Type Parameters

TModel
TView
Inheritance
SidebarControllerBase<TModel, TView>
Implements
Derived
Inherited Members

Constructors

SidebarControllerBase(IServices)

public SidebarControllerBase(IServices services)

Parameters

services IServices

Fields

Logger

protected readonly ILogger Logger

Field Value

ILogger

Services

protected readonly IServices Services

Field Value

IServices

Properties

IsAttached

public bool IsAttached { get; }

Property Value

bool

Model

protected TModel Model { get; }

Property Value

TModel

Methods

Attach()

called when a sidebar should be activated, creating a user-specific model

public ISidebarModel Attach()

Returns

ISidebarModel

the activated sidebar, or null on failure

CreateModel()

protected abstract TModel CreateModel()

Returns

TModel

DestroyModel(TModel)

protected virtual void DestroyModel(TModel model)

Parameters

model TModel

Detach()

called when a sidebar should be deactivated, disposing the now-unused model

public ISidebarModel? Detach()

Returns

ISidebarModel

the activated sidebar, or null on failure

Events

Added

public event Action? Added

Event Type

Action

Removed

public event Action? Removed

Event Type

Action