Click or drag to resize

ModernWindow Class

ModernWindow, represents Modern UI style Window object, which holds its contents in MVVM techniques.
Inheritance Hierarchy

Namespace:  Hummingbird.UI
Assembly:  Hummingbird.UI (in Hummingbird.UI.dll) Version: 1.1.0.0
Syntax
public class ModernWindow : BasicWindow

The ModernWindow type exposes the following members.

Constructors
  NameDescription
Public methodModernWindow
Initializes a new instance of the ModernWindow class.
Top
Properties
  NameDescription
Public propertyAvatarBrush
Gets or sets the avatar brush. it can be any type of Brush that will be shown as Avatar if IsAvatarVisible is set to
Public propertyAvatarSize
Gets or sets the size of the avatar icon.
Public propertyAvatarText
Gets or sets the text shown at the left side of the avatar
Public propertyBackstagePanel
A TabControl object shown as backstage panel. usually this panel can be used to adjust application settings.
Public propertyCommandArea
A little area which present on the upper-right corner, on the same level as MainMenu.
Public propertyCommands
Gets or Sets an collection of UIElements as Commands, these commands will be show on the Title Bar.
(Inherited from BasicWindow.)
Public propertyDarkBackground
Background image used for Dark theme. the background image itself must be dark enough (Black).
(Inherited from BasicWindow.)
Public propertyDarkIcon
Icon used for Dark theme.
(Inherited from BasicWindow.)
Public propertyDefaultStatusBar
Default status bar of ModernWindow, when an ModernContent has not defined status bar, this status bar will be shown.
Protected propertyDefaultStyle
Gets or sets the default style of the Window.
(Inherited from BasicWindow.)
Public propertyHasControlBox
Gets or Sets the value to indicate if current window has Control Box (including Minimize, Maximize and Close button)
(Inherited from BasicWindow.)
Public propertyHasLoaded
Gets or Sets the value to indicate if all components and loading logics has done.
(Inherited from BasicWindow.)
Public propertyId
Gets or sets the identifier of the Window.
(Inherited from BasicWindow.)
Public propertyIsAvatarVisible
Gets or sets a value indicating whether the avatar is visible.
Public propertyIsBusy
Gets or Sets the value to indicate if the current window Is Busy.
(Inherited from BasicWindow.)
Public propertyIsContentDetachable
Gets the value if the current active content is detachable
Public propertyIsContentDetached
Gets the value if the current active content has already detached.
Public propertyIsDarkTheme
Gets the value if the current theme is dark background and white text.
(Inherited from BasicWindow.)
Public propertyIsTitleHighlighted
Gets or Sets a value to indicate where the Title bar is highlighted.
(Inherited from BasicWindow.)
Public propertyLightBackground
Background image used for Light theme. the background image itself must be light enough (While).
(Inherited from BasicWindow.)
Public propertyLightIcon
Icon used for Light theme.
(Inherited from BasicWindow.)
Public propertyMainMenu
Main menu of the ModernWindow. Hummingbird UI holds a 3-level-menu system.
Public propertySideBar
Gets or sets the Sidebar shown on the right side of the window
(Inherited from BasicWindow.)
Public propertySideBarMaxWidth
Gets or sets the maximum width of the SideBar panel. the default value is 350 pixels
(Inherited from BasicWindow.)
Public propertySideBarMinWidth
Gets or sets the minimum width of the SideBar panel. the default value is 300 pixels.
(Inherited from BasicWindow.)
Public propertySideBarTitle
Gets or sets the Title of the sidebar title.
(Inherited from BasicWindow.)
Public propertySideBarVisibility
Gets or sets the Visibility of The SideBar
(Inherited from BasicWindow.)
Protected propertyStatusBar
StatusBar of the ModernWindow. Used like the CommandBar, intended to hold several AppBarButton objects.
Public propertyWindowStatus
Gets or Sets the value to visually shows the status of the current window, by different border colors.
(Inherited from BasicWindow.)
Top
Methods
  NameDescription
Public methodClearCache
Release the memory for cached objects, and start immediate a Garbage collection.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from BasicWindow.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from BasicWindow.)
Public methodCode exampleNavigateTo
Navigate to a select menu item by the key path. KeyPath is the path composite with the Key of ModernItem separated with |
Public methodShowBackstage
Shows the backstage control. Backstage is intended to hold application setting, like what Office 2016 did.
Public methodShowInformation
Show an In line information in the current window.
(Inherited from BasicWindow.)
Public methodShowMessageBox
Show a MessageBox
(Inherited from BasicWindow.)
Public methodShowToastNotification
Shows the toast notification.
(Inherited from BasicWindow.)
Public methodUpdateBackground
Updates the background to adapt the changes of theme
(Inherited from BasicWindow.)
Public methodUpdateIcon
Update the Icon to adapt the changes of theme.
(Overrides BasicWindowUpdateIcon.)
Top
Events
  NameDescription
Public eventAvatarClicked
Occurs when Avatar icon is clicked.
Top
Fields
  NameDescription
Public fieldStatic memberAvatarBrushProperty
Public fieldStatic memberAvatarSizeProperty
Public fieldStatic memberAvatarTextProperty
Using a DependencyProperty as the backing store for AvatarText. This enables animation, styling, binding, etc...
Public fieldStatic memberBackstagePanelProperty
The backstage panel property
Public fieldStatic memberCommandAreaProperty
The command area property
Public fieldStatic memberIsAvatarVisibleProperty
Public fieldStatic memberIsContentDetachableProperty
The is content detachable property
Public fieldStatic memberIsContentDetachedProperty
The is content detached property
Public fieldStatic memberMainMenuProperty
The main menu property
Protected fieldStatic memberStatusBarProperty
The status bar property
Top
See Also