Class TestSurface
public class TestSurface : ISurface
- Inheritance
-
TestSurface
- Implements
- Inherited Members
- Extension Methods
Constructors
TestSurface(IServices, TestShell, IPrincipal)
public TestSurface(IServices services, TestShell shell, IPrincipal principal = null)
Parameters
servicesIServicesshellTestShellprincipalIPrincipal
Fields
ModalFor
public TestSurface ModalFor
Field Value
Modals
public readonly Stack<TestSurface> Modals
Field Value
Model
public IScreenModel Model
Field Value
Notifications
public readonly List<string> Notifications
Field Value
Shell
public readonly TestShell Shell
Field Value
Properties
ContentContainer
public UIElement ContentContainer { get; }
Property Value
CurrentModalContent
public IScreenModel CurrentModalContent { get; }
Property Value
Principal
public IPrincipal Principal { get; }
Property Value
Services
public IServices Services { 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()
CancelModal(bool)
public Task CancelModal(bool ensureModalExists = false)
Parameters
ensureModalExistsbool
Returns
ClearNotifications()
public void ClearNotifications()
Close()
public void Close()
ConfirmModal(bool)
public Task ConfirmModal(bool ensureModalExists = false)
Parameters
ensureModalExistsbool
Returns
PopModalContent()
End display of the most recent modal subscreen
public void PopModalContent()
PushModalContent(IScreenModel)
Display a subscreen modally - this method should not block
public void PushModalContent(IScreenModel model)
Parameters
modelIScreenModel
SetContent(IScreenModel)
Set or replace the content
public void SetContent(IScreenModel model)
Parameters
modelIScreenModel
ShowNotification(string, MessageLevel, string, TimeSpan?)
Display an event notification non-modally
public 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
public event Action ContentChanging
Event Type
ScreenDisposed
Should be triggered when a surface is no longer present in the UI
public event Action ScreenDisposed