Class BinaryRibbonWindow
A custom Window class that provides Office emulating window display.
Namespace: Binarymission.WPF.Controls.Office
Assembly: Binarymission.WPF.Controls.BinaryRibbon.dll
Syntax
public class BinaryRibbonWindow : Window
Constructors
BinaryRibbonWindow()
Initializes a new instance of the BinaryRibbonWindow class.
Declaration
public BinaryRibbonWindow()
Properties
ApplicationMenuButtonRenderingStyle
Gets or sets the application menu button rendering style.
Declaration
public ApplicationMenuButtonStyle ApplicationMenuButtonRenderingStyle { get; set; }
Remarks
Refer to the ApplicationMenuButtonStyle
CloseWindow
Gets the CloseWindow routed UI command instance.
Declaration
public static RoutedUICommand CloseWindow { get; }
CurrentlyRenderingGlassOnNCArea
Gets or sets a value indicating whether currently extending glass on to the Window frame.
Declaration
public bool CurrentlyRenderingGlassOnNCArea { get; }
EnableDropShadowEffectOnWindowControlButtons
Gets or sets a value indicating whether to enable drop shadow effect on window control buttons - i.e. Minimize, Maximize and Close buttons.
Declaration
public bool EnableDropShadowEffectOnWindowControlButtons { get; set; }
IsFlowDirectionRightToLeft
Gets or sets a value indicating whether this instance's flow direction as "Right to Left".
Declaration
public bool IsFlowDirectionRightToLeft { get; set; }
Remarks
By default, the property has its value as false.
IsRibbonWindowActiveAndCurrent
Gets or sets a value indicating whether this instance is active and current.
Declaration
public bool IsRibbonWindowActiveAndCurrent { get; }
IsWindowControlButtonsVisible
Gets or sets a value indicating whether the window control buttons are visible or not - i.e. the Minimize, Maximise and Close button.
Declaration
public bool IsWindowControlButtonsVisible { get; set; }
MaximizeWindow
Gets the Maximize routed UI command instance.
Declaration
public static RoutedUICommand MaximizeWindow { get; }
MinimizeWindow
Gets the MinimizeWindow routed UI command instance.
Declaration
public static RoutedUICommand MinimizeWindow { get; }
QATPanelHeight
Declaration
public double QATPanelHeight { get; set; }
QATPanelMargin
Declaration
public Thickness QATPanelMargin { get; set; }
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.
Declaration
public bool RenderGlassIfOSSupports { get; set; }
Remarks
For this property to work, the OS will need to support Aero Glass, also the DWM composition must be currently enabled.
ScaleTransformScaleXAndScaleY
Gets or sets the scale transform's scale X and scale Y values.
Declaration
public double ScaleTransformScaleXAndScaleY { get; set; }
Remarks
When wanting to perform a layout transfor, please use this property to set the desired Scale X and Y values.
TitleBarMargin
Declaration
public Thickness TitleBarMargin { get; set; }
TitleBrush
Gets or sets the Window title brush.
Declaration
public Brush TitleBrush { get; }
WindowBorderEdgeRenderingMode
Gets or sets the window border edge rendering mode.
Declaration
public RibbonWindowBorder.CornerStyle WindowBorderEdgeRenderingMode { get; set; }
WindowTitleBarBackgroundRenderingStyle
Gets or sets the window title bar background rendering style.
Declaration
public WindowTitleBarBackgroundRenderingStyle WindowTitleBarBackgroundRenderingStyle { get; set; }
Remarks
Please refer to WindowTitleBarBackgroundRenderingStyle
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size bounds)
Parameters
Type | Name | Description |
---|---|---|
Size | bounds |
Returns
Type | Description |
---|---|
Size |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
Declaration
public override void OnApplyTemplate()
OnSizeChanged(Object, SizeChangedEventArgs)
Declaration
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Object | sender | |
SizeChangedEventArgs | e |
OnSourceInitialized(EventArgs)
Declaration
protected override void OnSourceInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnStateChanged(EventArgs)
Declaration
protected override void OnStateChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
WndProc(IntPtr, Int32, IntPtr, IntPtr, ref Boolean)
Declaration
protected virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool resultFromExecution)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | hwnd | |
Int32 | msg | |
IntPtr | wParam | |
IntPtr | lParam | |
Boolean | resultFromExecution |
Returns
Type | Description |
---|---|
IntPtr |