Interface IMainWindowService
- Namespace
- Artemis.UI.Shared.Services.MainWindow
- Assembly
- Artemis.UI.Shared.dll
A service that can be used to manage the state of the main window.
public interface IMainWindowService : IArtemisSharedUIService
Properties
IsMainWindowFocused
Gets a boolean indicating whether the main window is currently focused
bool IsMainWindowFocused { get; }
Property Value
IsMainWindowOpen
Gets a boolean indicating whether the main window is currently open
bool IsMainWindowOpen { get; }
Property Value
Methods
CloseMainWindow()
Closes the main window if it is not already closed, must be called on the UI thread
void CloseMainWindow()
ConfigureMainWindowProvider(IMainWindowProvider)
Sets up the main window provider that controls the state of the main window
void ConfigureMainWindowProvider(IMainWindowProvider mainWindowProvider)
Parameters
mainWindowProviderIMainWindowProviderThe main window provider to use to control the state of the main window
OpenMainWindow()
Opens the main window if it is not already open, must be called on the UI thread
void OpenMainWindow()
Events
MainWindowClosed
Occurs when the main window has been closed
event EventHandler? MainWindowClosed
Event Type
MainWindowFocused
Occurs when the main window has been focused
event EventHandler? MainWindowFocused
Event Type
MainWindowOpened
Occurs when the main window has been opened
event EventHandler? MainWindowOpened
Event Type
MainWindowUnfocused
Occurs when the main window has been unfocused
event EventHandler? MainWindowUnfocused