-
Notifications
You must be signed in to change notification settings - Fork 5
IMesStatusBar
Mark Kromis edited this page Oct 21, 2019
·
2 revisions
Sets up a standard statusbar for easy access. This allows the user to use this or make their own statusbar control.
- WPF (Framework)
Create this in the MainView and interface thru the IMesStatusBar service.
<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 IMesStatusBar to interface with UI. This can be done via direct resolve or constructor injection.
var statusbar = Mvx.IoCProvider.Resolve<IMesStatusBar>();See SimpleDemo.RibbonWpf for an example.