Table of Contents

Class RootSurface

Namespace
The.WPF.Shell.TDI
Assembly
Instagile.WPF.dll
public sealed class RootSurface : NotificationObject, INotifyPropertyChanged, ISurface
Inheritance
RootSurface
Implements
Inherited Members
Extension Methods

Constructors

RootSurface(IServices, TabbedWindow, Func<Task>, bool, bool)

public RootSurface(IServices services, TabbedWindow window, Func<Task> closeAllTabs, bool isTab, bool isBackground)

Parameters

services IServices
window TabbedWindow
closeAllTabs Func<Task>
isTab bool
isBackground bool

Properties

ContentContainer

public UIElement ContentContainer { get; }

Property Value

UIElement

CurrentModalContent

public IScreenModel CurrentModalContent { get; }

Property Value

IScreenModel

GlobalNotifications

public NotificationBarModel GlobalNotifications { get; }

Property Value

NotificationBarModel

IsBackground

public bool IsBackground { get; }

Property Value

bool

IsOpen

public bool IsOpen { get; }

Property Value

bool

IsTab

public bool IsTab { get; }

Property Value

bool

Model

public TabModel Model { get; }

Property Value

TabModel

Principal

public IPrincipal Principal { get; set; }

Property Value

IPrincipal

Services

public IServices Services { get; }

Property Value

IServices

TransientNotification

public Task TransientNotification { get; }

Property Value

Task

Window

public Window Window { get; }

Property Value

Window

Methods

Activate()

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

public void Activate()

ClearNotifications()

public void ClearNotifications()

PushModalContent(IScreenModel)

Display a subscreen modally - this method should not block

public void PushModalContent(IScreenModel vm)

Parameters

vm IScreenModel

RaiseScreenDisposed()

public void RaiseScreenDisposed()

SetContent(IScreenModel)

Set or replace the content

public void SetContent(IScreenModel vm)

Parameters

vm IScreenModel

ShowNotification(string, MessageLevel, string, TimeSpan?)

Display an event notification non-modally

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

Parameters

notification string
severity MessageLevel
details string
timeout TimeSpan?

Events

ContentChanging

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

public event Action ContentChanging

Event Type

Action

ScreenDisposed

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

public event Action ScreenDisposed

Event Type

Action