Table of Contents

Class ContentControllerBase<T>

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll
public abstract class ContentControllerBase<T> : ScreenControllerBase<ContentModel<T>, ContentView, ContentOptions>, IScreenController<ContentModel<T>>, IScreenController where T : IEntity

Type Parameters

T
Inheritance
ContentControllerBase<T>
Implements
Inherited Members

Constructors

ContentControllerBase(IServices, T, Action<ContentOptions>)

public ContentControllerBase(IServices services, T entity, Action<ContentOptions> configure = null)

Parameters

services IServices
entity T
configure Action<ContentOptions>

Fields

ChangeExecutor

protected readonly NotificationExecutor ChangeExecutor

Field Value

NotificationExecutor

Entity

protected readonly T Entity

Field Value

T

SharedLookupContext

protected IEntityContext SharedLookupContext

Field Value

IEntityContext

Properties

IsEditable

protected bool IsEditable { get; }

Property Value

bool

IsSubscreen

protected bool IsSubscreen { get; }

Property Value

bool

NamespacePrefix

protected string NamespacePrefix { get; }

Property Value

string

Methods

CreateUninitialisedModel(ISurface)

protected override sealed ContentModel<T> CreateUninitialisedModel(ISurface surface)

Parameters

surface ISurface

Returns

ContentModel<T>

CreateUninitialisedModel(ISurface, T, IReadOnlyList<IField>, IReadOnlyList<ISection>)

protected virtual ContentModel<T> CreateUninitialisedModel(ISurface surface, T entity, IReadOnlyList<IField> fields, IReadOnlyList<ISection> sections)

Parameters

surface ISurface
entity T
fields IReadOnlyList<IField>
sections IReadOnlyList<ISection>

Returns

ContentModel<T>

GetCustomFields()

public virtual IEnumerable<IField> GetCustomFields()

Returns

IEnumerable<IField>

GetGeneratedFields()

public abstract IEnumerable<IField> GetGeneratedFields()

Returns

IEnumerable<IField>

GetSections()

public abstract IEnumerable<ISection> GetSections()

Returns

IEnumerable<ISection>

InitialiseModel(ContentModel<T>)

protected override void InitialiseModel(ContentModel<T> vm)

Parameters

vm ContentModel<T>

OnClosed()

protected override sealed void OnClosed()

OnControllerClosed()

protected virtual void OnControllerClosed()

OnControllerOpened()

protected virtual void OnControllerOpened()

OnCreating()

protected virtual void OnCreating()

OnOpened()

protected override sealed void OnOpened()

ShouldExpandByDefault(int)

protected bool ShouldExpandByDefault(int numberOfSections)

Parameters

numberOfSections int

Returns

bool

Events

Creating

public event Action Creating

Event Type

Action