Skip to content

IMesStatusBar

Mark Kromis edited this page Oct 21, 2019 · 2 revisions

What does it do

Sets up a standard statusbar for easy access. This allows the user to use this or make their own statusbar control.

Supported Platforms

  • WPF (Framework)

Modules Used

Main Usage

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.

Clone this wiki locally