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

Gets an error message indicating what is wrong with this object.

public abstract string Error { get; }

Property Value

string

An error message indicating what is wrong with this object. The default is an empty 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

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]

Gets the error message for the property with the given name.

public string this[string columnName] { get; }

Parameters

columnName string

The name of the property whose error message to get.

Property Value

string

The error message for the property. The default is an empty 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