Click or drag to resize

Modern Content

ModernContent is intend to replace custom UserControl. You must use ModernContent as the ContentType of ModernMenuItem.

Using of MonderContent

There are following enhancement to ModernContent compared to ordinary UserControl

When switching between menu items within a ModernWindow, the framework checks if the current ModernContent can be closed by calling the CanBeClosed function. You should override this function and notify users to react. When False is returned by this function, user cannot switch to another view.

Detach Content to an independent window

When user have dual-screen or multi-screen configuration, it is good to split different functionalities of the application to different windows. To do so, ModernContent has an IsDetachable property, when the ModernContent is shown within a ModernWindow and IsDetachable property is set to true, user can detach the current view into an independent window and benefits from his multi-screen configuration.

detach

Command Area

When you want to use maximum of the screen surface, you can even set one or two command buttons into the CommandArea. When the ModernContent is shown within a ModernWindow, content of the CommandArea will be shown outside of the content.

Status Bar

Every ModernContent can have its own StatusBar for proper use. When the StatusBar of a ModernContent is defined, it will replace the default StatusBar defined by the ModernWindow when the current ModernContent became active. When switch to another view, the status bar will be replaced back.

See Also