Table of Contents

Class SectionBase<TView>

Namespace
The.WPF.Sections
Assembly
Instagile.WPF.dll
public abstract class SectionBase<TView> : NotificationObject, ISection, IModel, INotifyPropertyChanged, IDataErrorInfo

Type Parameters

TView
Inheritance
SectionBase<TView>
Implements
Derived
Inherited Members
Extension Methods

Constructors

SectionBase(ISurface, string, string, bool)

protected SectionBase(ISurface surface, string title, string @namespace, bool expandByDefault)

Parameters

surface ISurface
title string
namespace string
expandByDefault bool

Fields

Logger

protected readonly ILogger Logger

Field Value

ILogger

Principal

protected readonly IPrincipal Principal

Field Value

IPrincipal

Services

protected readonly IServices Services

Field Value

IServices

Properties

Content

public ISection Content { get; }

Property Value

ISection

DoCollapseAll

public ICommand DoCollapseAll { get; }

Property Value

ICommand

DoExpandAll

public ICommand DoExpandAll { get; }

Property Value

ICommand

Error

A summary of the section's invalid fields, for callers composing a failure message. Not displayed.

public abstract string Error { get; }

Property Value

string

Fields

public abstract IEnumerable<IField> Fields { get; }

Property Value

IEnumerable<IField>

HasChanges

public abstract bool HasChanges { get; }

Property Value

bool

HeaderBackgroundBrush

public virtual Brush? HeaderBackgroundBrush { get; }

Property Value

Brush

HeaderForegroundBrush

public virtual Brush? HeaderForegroundBrush { get; }

Property Value

Brush

Height

public GridLength Height { get; set; }

Property Value

GridLength

IsEditable

public abstract bool IsEditable { get; }

Property Value

bool

IsExpanded

public bool IsExpanded { get; set; }

Property Value

bool

IsHero

public virtual bool IsHero { get; }

Property Value

bool

IsMaximized

True while the section temporarily takes over its content screen, e.g. to give an embedded grid more room. Collapsing a maximized section restores the normal layout.

public bool IsMaximized { get; set; }

Property Value

bool

IsResizable

public virtual bool IsResizable { get; }

Property Value

bool

IsValid

public abstract bool IsValid { get; }

Property Value

bool

IsVisible

public virtual bool IsVisible { get; }

Property Value

bool

this[string]

Empty always: a section never displays a finding of its own, only the fields inside it do.

public string this[string columnName] { get; }

Parameters

columnName string

Property Value

string

SectionBackgroundBrush

public virtual Brush? SectionBackgroundBrush { get; }

Property Value

Brush

Subtitle

public virtual string Subtitle { get; }

Property Value

string

Surface

public ISurface Surface { get; }

Property Value

ISurface

Title

public virtual string Title { get; }

Property Value

string

Methods

OnLoadedAsync()

public virtual Task OnLoadedAsync()

Returns

Task

WithField(IField)

public abstract ISection WithField(IField f)

Parameters

f IField

Returns

ISection

WithoutField(IField)

public abstract ISection WithoutField(IField f)

Parameters

f IField

Returns

ISection

Events

CollapseAllRequested

public event Action? CollapseAllRequested

Event Type

Action

ExpandAllRequested

public event Action? ExpandAllRequested

Event Type

Action