-
Notifications
You must be signed in to change notification settings - Fork 5
IMesManager
Mark Kromis edited this page Oct 21, 2019
·
1 revision
Sets up the initial window to make using multiple editors/documents easier to use.
- WPF (Framework)
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.