Interface ISurface
An area of the shell on which screens can be displayed
public interface ISurface
- Extension Methods
Properties
ContentContainer
UIElement ContentContainer { get; }
Property Value
CurrentModalContent
IScreenModel CurrentModalContent { get; }
Property Value
Principal
IPrincipal Principal { get; }
Property Value
Services
IServices Services { get; }
Property Value
Window
Window Window { get; }
Property Value
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
modelIScreenModel
SetContent(IScreenModel)
Set or replace the content
void SetContent(IScreenModel model)
Parameters
modelIScreenModel
ShowNotification(string, MessageLevel, string?, TimeSpan?)
Display an event notification non-modally
void ShowNotification(string notification, MessageLevel level, string? details = null, TimeSpan? timeout = null)
Parameters
notificationstringlevelMessageLeveldetailsstringtimeoutTimeSpan?
Events
ContentChanging
Should be triggered when a surface's content is about to be changed
event Action ContentChanging
Event Type
ScreenDisposed
Should be triggered when a surface is no longer present in the UI
event Action ScreenDisposed