Table of Contents

Interface ISurface

Namespace
The.WPF.Shell
Assembly
Instagile.WPF.dll

An area of the shell on which screens can be displayed

public interface ISurface
Extension Methods

Properties

ContentContainer

UIElement ContentContainer { get; }

Property Value

UIElement

CurrentModalContent

IScreenModel CurrentModalContent { get; }

Property Value

IScreenModel

Principal

IPrincipal Principal { get; }

Property Value

IPrincipal

Services

IServices Services { get; }

Property Value

IServices

Window

Window Window { get; }

Property Value

Window

Methods

Activate()

Switch UI to an existing screen, bringing it to the user's attention

void Activate()

ClearNotifications()

void ClearNotifications()

PopModalContent()

End display of the most recent modal subscreen

void PopModalContent()

PushModalContent(IScreenModel)

Display a subscreen modally - this method should not block

void PushModalContent(IScreenModel model)

Parameters

model IScreenModel

SetContent(IScreenModel)

Set or replace the content

void SetContent(IScreenModel model)

Parameters

model IScreenModel

ShowNotification(string, MessageLevel, string?, TimeSpan?)

Display an event notification non-modally

void ShowNotification(string notification, MessageLevel level, string? details = null, TimeSpan? timeout = null)

Parameters

notification string
level MessageLevel
details string
timeout TimeSpan?

Events

ContentChanging

Should be triggered when a surface's content is about to be changed

event Action ContentChanging

Event Type

Action

ScreenDisposed

Should be triggered when a surface is no longer present in the UI

event Action ScreenDisposed

Event Type

Action