Skip to content

IMesManager

Mark Kromis edited this page Oct 21, 2019 · 1 revision

What does it do

Sets up the initial window to make using multiple editors/documents easier to use.

Screenshot - Ribbon Demo

Supported Platforms

  • WPF (Framework)

Modules Used

Main Usage

Use this for the main window in the root of the project. This will tie into the appropriate themes and setup main window.

<views:MvxWpfView
    ...
    xmlns:mes="clr-namespace:MinoriEditorShell.Platforms.Wpf.Views;assembly=MinoriEditorShell"
    ...>
    <DockPanel>
        <fluent:Ribbon DockPanel.Dock="Top" ... /><!-- if using ribbon menus -->
        <mes:MesStatusBarView DockPanel.Dock="Bottom"/><!-- if needing status bar -->
        <mes:MesManagerView /><!-- Main dockable control -->
    </DockPanel>
</views:MvxWpfView>

When calling this from the MainViewModel, resolve IMesManager to interface with UI. This can be done via direct resolve or constructor injection.

var manager = Mvx.IoCProvider.Resolve<IMesManager>();

See SimpleDemo.RibbonWpf for an example.

Clone this wiki locally