Skip to content
Robert B Colton edited this page Aug 12, 2016 · 1 revision

Screenshot

The shell module:

  • manages placement of the document and tool windows
  • persists and loads the size and position of tool windows
  • manages the links between AvalonDock and Caliburn.Micro

Provides

  • IShell interface

NuGet package

Dependencies

  • None

Usage

The IShell interface exposes a number of useful properties and methods. It is the main way to control Gemini's behaviour.

public interface IShell
{
    event EventHandler ActiveDocumentChanging;
    event EventHandler ActiveDocumentChanged;

    bool ShowFloatingWindowsInTaskbar { get; set; }
        
	IMenu MainMenu { get; }
    IToolBars ToolBars { get; }
	IStatusBar StatusBar { get; }

	IDocument ActiveItem { get; }

	IObservableCollection<IDocument> Documents { get; }
	IObservableCollection<ITool> Tools { get; }

    void ShowTool<TTool>() where TTool : ITool;
	void ShowTool(ITool model);

	void OpenDocument(IDocument model);
	void CloseDocument(IDocument document);

	void Close();
}
Clone this wiki locally