Class RootSurface
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
Properties
ContentContainer
public UIElement ContentContainer { get; }
Property Value
CurrentModalContent
public IScreenModel CurrentModalContent { get; }
Property Value
GlobalNotifications
public NotificationBarModel GlobalNotifications { get; }
Property Value
IsBackground
public bool IsBackground { get; }
Property Value
IsOpen
public bool IsOpen { get; }
Property Value
IsTab
public bool IsTab { get; }
Property Value
Model
public TabModel Model { get; }
Property Value
Principal
public IPrincipal Principal { get; set; }
Property Value
Services
public IServices Services { get; }
Property Value
TransientNotification
public Task TransientNotification { get; }
Property Value
Window
public Window Window { get; }
Property Value
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
vmIScreenModel
RaiseScreenDisposed()
public void RaiseScreenDisposed()
SetContent(IScreenModel)
Set or replace the content
public void SetContent(IScreenModel vm)
Parameters
vmIScreenModel
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
notificationstringseverityMessageLeveldetailsstringtimeoutTimeSpan?
Events
ContentChanging
Should be triggered when a surface's content is about to be changed
public event Action ContentChanging
Event Type
ScreenDisposed
Should be triggered when a surface is no longer present in the UI
public event Action ScreenDisposed