Interface IPhoenixShell
Exposes the top level shell window to track closing and closed events.
Namespace: Phoenix.Views
Assembly: Phoenix.Abstractions.Views.dll
Syntax
public interface IPhoenixShell
Properties
View SourceDeviceManagementRegion
Gets the ContentControl that is hosting device management window
Declaration
ContentControl DeviceManagementRegion { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.ContentControl |
DocumentsRegion
Gets the TabControl that is hosting our documents windows
Declaration
TabControl DocumentsRegion { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.TabControl |
Menu
Gets the MenuItem to put view commands in
Declaration
MenuItem Menu { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.MenuItem |
OutputRegion
Gets the ContentControl that is hosting our logging window
Declaration
ContentControl OutputRegion { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.ContentControl |
WindowingControl
Gets or sets the IWindowingControl object for binding windowing commands
Declaration
IWindowingControl WindowingControl { get; set; }
Property Value
Type | Description |
---|---|
IWindowingControl |
Methods
View SourceExitShell(Boolean)
Exits the shell manually, firing all the related events from closing.
Declaration
void ExitShell(bool force)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | force | when true, the OnClosing events will not fire. |
LoadPanelSettings(Boolean, Double, Boolean, Double)
Load panel settings into the shell so that it reflects its saved state.
Declaration
void LoadPanelSettings(bool isDeviceCollapsed, double deviceWidth, bool isOutputCollapsed, double outputHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDeviceCollapsed | When true, collapses device panel on startup. |
System.Double | deviceWidth | Sets the width of the device panel on startup. |
System.Boolean | isOutputCollapsed | When true, collapses output panel on startup. |
System.Double | outputHeight | Sets the height of the output panel on startup. |
Events
View SourceClosed
Occurs when the window is about to close.
Declaration
event EventHandler Closed
Event Type
Type | Description |
---|---|
System.EventHandler |
Closing
Occurs directly after System.Windows.Window.Close() is called, and can be handled to cancel window closure.
Declaration
event CancelEventHandler Closing
Event Type
Type | Description |
---|---|
System.ComponentModel.CancelEventHandler |