Click or drag to resize

ModernContent Class

Custom UserControl used in BasicWindow or ModernWindow
Inheritance Hierarchy

Namespace:  Hummingbird.UI
Assembly:  Hummingbird.UI (in Hummingbird.UI.dll) Version: 1.1.0.0
Syntax
public class ModernContent : ContentControl, 
	IDisposable

The ModernContent type exposes the following members.

Constructors
  NameDescription
Public methodModernContent
Initializes a new instance of the ModernContent class.
Public methodModernContent(ModernWindow)
Initializes a new instance of the ModernContent class.
Top
Properties
  NameDescription
Public propertyCommandArea
Gets or Sets the CommandArea of the ModernContent.
Public propertyContentChanged
Gets or sets a value indicating whether the data held in this ModernContent has been changed.
Public propertyDetachedName
Gets or Sets the value of Window name showing in Title bar, when the current ModernContent is detached.
Protected propertyHasLoaded
Gets or Sets a value indicates if the Load operation is done for this control. you need to pass manually this indicator to True once initialization has done.
Public propertyIsDarkTheme
Gets the value if the current theme is dark background and white text.
Public propertyIsDetachable
Gets or Sets a value indicates if the current content can be detached.
Public propertyParentWindow
The BasicWindow object who holds the current ModernContent
Public propertyStatusBar
Gets or Sets the statusBar of the ModernContent.
Public propertyStrongName
Unique identifier of this ModernContent, it is usually used to save personal data per control
Top
Methods
  NameDescription
Public methodCanBeClosed
Calls before closing the window. By default this function triggers Closing event. if the event is canceled, the result is false. If the Closing event is not defined, then True will be returned. This function can be overridden, to prompt user to save changes before content closing.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Protected methodHasNoValidationError
Determines whether this content contains validation errors of Data Binding.
Public methodShowInformation
Show an Windows 8.1 style information panel in the current window.
Public methodShowMessageBox(String, String, String)
Shows the message box with detailed error message.
Public methodShowMessageBox(String, String, MessageBoxButton, MessageBoxImage, String)
Show a MessageBox
Public methodShowToastNotification
Shows a toast notification of given Content and Level.
Top
Events
  NameDescription
Public eventClosing
When the content will be replaced in a ModernWindow, this event will be fired in order to save the changes.
Top
Fields
  NameDescription
Public fieldStatic memberDetachedNameProperty
The Dependency property for DetachedName
Public fieldStatic memberIsDetachableProperty
The is detachable property
Top
See Also