HypernovaDesktop Components · docs
Binarymission
WPFRibbon › BinaryRibbonWindow

BinaryRibbonWindow

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Office

A custom Window class that provides Office emulating window display.

public class BinaryRibbonWindow : Window

Inherits from / implements: Window

Members at a glance

BinaryRibbonWindowInitializes a new instance of the BinaryRibbonWindow class.
ApplicationMenuButtonRenderingStyleGets or sets the application menu button rendering style.
CloseWindowGets the CloseWindow routed UI command instance.
CurrentlyRenderingGlassOnNCAreaGets or sets a value indicating whether currently extending glass on to the Window frame.
EnableDropShadowEffectOnWindowControlButtonsGets or sets a value indicating whether to enable drop shadow effect on window control buttons - i.e. Minimize, Maximize and Close buttons.
IsFlowDirectionRightToLeftGets or sets a value indicating whether this instance's flow direction as "Right to Left".
IsRibbonWindowActiveAndCurrentGets or sets a value indicating whether this instance is active and current.
IsWindowControlButtonsVisibleGets or sets a value indicating whether the window control buttons are visible or not - i.e. the Minimize, Maximise and Close button.
MaximizeWindowGets the Maximize routed UI command instance.
MinimizeWindowGets the MinimizeWindow routed UI command instance.
QATPanelHeightThe height of the quick access toolbar panel.
QATPanelMarginThe margin left around the quick access toolbar panel.
RenderGlassIfOSSupportsGets or sets a value indicating whether to render Vista / Windows 7 Aero glass in the non-client areas, if the current OS supports.
ScaleTransformScaleXAndScaleYGets or sets the scale transform's scale X and scale Y values.
TitleBarMarginThe margin left around the title bar, which is how the caption is kept clear of the window's own chrome.
TitleBrushGets or sets the Window title brush.
WindowBorderEdgeRenderingModeGets or sets the window border edge rendering mode.
WindowTitleBarBackgroundRenderingStyleGets or sets the window title bar background rendering style.
ArrangeOverridePlaces the children within the space this element was given, and reports the space it actually used.
OnApplyTemplateWhen overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
OnSizeChangedCalled when the window is resized, which is where the ribbon is told to reconsider how much of itself it can show.
OnSourceInitializedRaises the SourceInitialized event. BinaryRibbonWindow overrides it so the control's own handling runs alongside the base behavior.
OnStateChangedRaises the StateChanged event. BinaryRibbonWindow overrides it so the control's own handling runs alongside the base behavior.
WndProcProcesses the Windows messages sent to this control's window.
ApplicationMenuButtonRenderingStylePropertyIdentifies the ApplicationMenuButtonRenderingStyle dependency property.
CurrentlyRenderingGlassOnNCAreaPropertyCurrentlyRenderingGlassOnNCAreaProperty property.
EnableDropShadowEffectOnWindowControlButtonsPropertyEnableDropShadowEffectOnWindowControlButtonsProperty property.
IsFlowDirectionRightToLeftPropertyIdentifies the IsFlowDirectionRightToLeft dependency property.
IsWindowActiveAndCurrentPropertyIsWindowActiveAndCurrentProperty property.
IsWindowControlButtonsVisiblePropertyIsWindowControlButtonsVisibleProperty property.
QATPanelHeightPropertyIdentifies the QATPanelHeight dependency property.
QATPanelMarginPropertyIdentifies the QATPanelMargin dependency property.
RenderGlassIfOSSupportsPropertyRenderGlassIfOSSupportsProperty property.
ScaleTransformScaleXAndScaleYPropertyIdentifies the ScaleTransformScaleXAndScaleY dependency property.
TitleBarMarginPropertyIdentifies the TitleBarMargin dependency property.
TitleBrushPropertyTitleBrushProperty property.
WindowBorderEdgeRenderingModePropertyWindowBorderEdgeRenderingModeProperty property.
WindowTitleBarBackgroundRenderingStylePropertyIdentifies the WindowTitleBarBackgroundRenderingStyle dependency property.

Constructors

BinaryRibbonWindow

public BinaryRibbonWindow() : base()

Initializes a new instance of the BinaryRibbonWindow class.

Properties

ApplicationMenuButtonRenderingStyle

public ApplicationMenuButtonStyle ApplicationMenuButtonRenderingStyle

Gets or sets the application menu button rendering style.

Refer to the ApplicationMenuButtonStyle

CloseWindow

public static RoutedUICommand CloseWindow

Gets the CloseWindow routed UI command instance.

CurrentlyRenderingGlassOnNCArea

public bool CurrentlyRenderingGlassOnNCArea

Gets or sets a value indicating whether currently extending glass on to the Window frame.

EnableDropShadowEffectOnWindowControlButtons

public bool EnableDropShadowEffectOnWindowControlButtons

Gets or sets a value indicating whether to enable drop shadow effect on window control buttons - i.e. Minimize, Maximize and Close buttons.

IsFlowDirectionRightToLeft

public bool IsFlowDirectionRightToLeft

Gets or sets a value indicating whether this instance's flow direction as "Right to Left".

By default, the property has its value as false.

IsRibbonWindowActiveAndCurrent

public bool IsRibbonWindowActiveAndCurrent

Gets or sets a value indicating whether this instance is active and current.

IsWindowControlButtonsVisible

public bool IsWindowControlButtonsVisible

Gets or sets a value indicating whether the window control buttons are visible or not - i.e. the Minimize, Maximise and Close button.

MaximizeWindow

public static RoutedUICommand MaximizeWindow

Gets the Maximize routed UI command instance.

MinimizeWindow

public static RoutedUICommand MinimizeWindow

Gets the MinimizeWindow routed UI command instance.

QATPanelHeight

public double QATPanelHeight

The height of the quick access toolbar panel.

QATPanelMargin

public Thickness QATPanelMargin

The margin left around the quick access toolbar panel.

RenderGlassIfOSSupports

public bool RenderGlassIfOSSupports

Gets or sets a value indicating whether to render Vista / Windows 7 Aero glass in the non-client areas, if the current OS supports.

For this property to work, the OS will need to support Aero Glass, also the DWM composition must be currently enabled.

ScaleTransformScaleXAndScaleY

public double ScaleTransformScaleXAndScaleY

Gets or sets the scale transform's scale X and scale Y values.

When wanting to perform a layout transfor, please use this property to set the desired Scale X and Y values.

TitleBarMargin

public Thickness TitleBarMargin

The margin left around the title bar, which is how the caption is kept clear of the window's own chrome.

TitleBrush

public Brush TitleBrush

Gets or sets the Window title brush.

WindowBorderEdgeRenderingMode

public RibbonWindowBorder.CornerStyle WindowBorderEdgeRenderingMode

Gets or sets the window border edge rendering mode.

WindowTitleBarBackgroundRenderingStyle

public WindowTitleBarBackgroundRenderingStyle WindowTitleBarBackgroundRenderingStyle

Gets or sets the window title bar background rendering style.

Please refer to WindowTitleBarBackgroundRenderingStyle

Methods

ArrangeOverride

protected override Size ArrangeOverride(Size bounds)

Places the children within the space this element was given, and reports the space it actually used.

OnApplyTemplate

public override void OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.

OnSizeChanged

protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)

Called when the window is resized, which is where the ribbon is told to reconsider how much of itself it can show.

sender
The window.
e
The old and new sizes.

OnSourceInitialized

protected override void OnSourceInitialized(EventArgs e)

Raises the SourceInitialized event. BinaryRibbonWindow overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnStateChanged

protected override void OnStateChanged(EventArgs e)

Raises the StateChanged event. BinaryRibbonWindow overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

WndProc

protected virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool resultFromExecution)

Processes the Windows messages sent to this control's window.

Fields

ApplicationMenuButtonRenderingStyleProperty

public static readonly DependencyProperty ApplicationMenuButtonRenderingStyleProperty

Identifies the ApplicationMenuButtonRenderingStyle dependency property.

CurrentlyRenderingGlassOnNCAreaProperty

public static DependencyProperty CurrentlyRenderingGlassOnNCAreaProperty

CurrentlyRenderingGlassOnNCAreaProperty property.

EnableDropShadowEffectOnWindowControlButtonsProperty

public static readonly DependencyProperty EnableDropShadowEffectOnWindowControlButtonsProperty

EnableDropShadowEffectOnWindowControlButtonsProperty property.

IsFlowDirectionRightToLeftProperty

public static readonly DependencyProperty IsFlowDirectionRightToLeftProperty

Identifies the IsFlowDirectionRightToLeft dependency property.

IsWindowActiveAndCurrentProperty

public static readonly DependencyProperty IsWindowActiveAndCurrentProperty

IsWindowActiveAndCurrentProperty property.

IsWindowControlButtonsVisibleProperty

public static readonly DependencyProperty IsWindowControlButtonsVisibleProperty

IsWindowControlButtonsVisibleProperty property.

QATPanelHeightProperty

public static readonly DependencyProperty QATPanelHeightProperty

Identifies the QATPanelHeight dependency property.

QATPanelMarginProperty

public static readonly DependencyProperty QATPanelMarginProperty

Identifies the QATPanelMargin dependency property.

RenderGlassIfOSSupportsProperty

public static readonly DependencyProperty RenderGlassIfOSSupportsProperty

RenderGlassIfOSSupportsProperty property.

ScaleTransformScaleXAndScaleYProperty

public static readonly DependencyProperty ScaleTransformScaleXAndScaleYProperty

Identifies the ScaleTransformScaleXAndScaleY dependency property.

TitleBarMarginProperty

public static readonly DependencyProperty TitleBarMarginProperty

Identifies the TitleBarMargin dependency property.

TitleBrushProperty

public static DependencyProperty TitleBrushProperty

TitleBrushProperty property.

WindowBorderEdgeRenderingModeProperty

public static readonly DependencyProperty WindowBorderEdgeRenderingModeProperty

WindowBorderEdgeRenderingModeProperty property.

WindowTitleBarBackgroundRenderingStyleProperty

public static readonly DependencyProperty WindowTitleBarBackgroundRenderingStyleProperty

Identifies the WindowTitleBarBackgroundRenderingStyle dependency property.