Table of Contents

Class ScreenModelBase

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll

This basic IScreenModel provides overridable properties with useful defaults

public abstract class ScreenModelBase : NotificationObject, IScreenModel, IModel, INotifyPropertyChanged
Inheritance
ScreenModelBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

ScreenModelBase(ISurface)

public ScreenModelBase(ISurface surface)

Parameters

surface ISurface

Properties

AreCommandsEnabled

Indicates whether the screen's commands are enabled. Commands may still be disabled individually even if this returns true

public virtual bool AreCommandsEnabled { get; }

Property Value

bool

CancelCommand

can be invoked to cancel a screen

public IScreenCommand CancelCommand { get; set; }

Property Value

IScreenCommand

Commands

this collection may be modified to change the screen's set of commands

public IReadOnlyList<IScreenCommand> Commands { get; set; }

Property Value

IReadOnlyList<IScreenCommand>

ConfirmCommand

can be invoked as the default action of a screen.

public IScreenCommand ConfirmCommand { get; set; }

Property Value

IScreenCommand

HasChanges

public virtual bool HasChanges { get; }

Property Value

bool

HasTitleBar

If false, the title and commands will not be displayed.

public bool HasTitleBar { get; set; }

Property Value

bool

Icons

this collection may be modified to change the icons displayed next to the title

public IReadOnlyList<IconModel> Icons { get; set; }

Property Value

IReadOnlyList<IconModel>

IsEditable

public virtual bool IsEditable { get; }

Property Value

bool

IsValid

public virtual bool IsValid { get; }

Property Value

bool

RefreshCommand

can be invoked commands to reload a screen's data.

public IScreenCommand RefreshCommand { get; set; }

Property Value

IScreenCommand

SaveCommand

can be invoked to store a screen's data.

public IScreenCommand SaveCommand { get; set; }

Property Value

IScreenCommand

ScreenTitle

this property may be set or modified to change the screen's title

public virtual string ScreenTitle { get; set; }

Property Value

string

Services

protected IServices Services { get; }

Property Value

IServices

Surface

set by constructor- every screenmodel must be 'located on' a shell-defined IScreen

public ISurface Surface { get; }

Property Value

ISurface

Methods

GetBlockingChangesAsync()

public virtual Task<IEnumerable<Change>> GetBlockingChangesAsync()

Returns

Task<IEnumerable<Change>>

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.