In This Article

RibbonWindow Class

Represents a Window that is designed to host a Ribbon, using a RibbonWindowChrome to theme the window and support a quick-access toolbar in the window's titlebar.

public class RibbonWindow : Window
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl Window object

Constructors

RibbonWindow()

Initializes a new instance of the RibbonWindow class.

public RibbonWindow()

Properties

Ribbon

Gets the primary Ribbon in the window.

public Ribbon Ribbon { get; }

Property Value

Ribbon:

The primary Ribbon in the window.

Methods

CreateWindowChrome()

Creates a new WindowChrome instance to be applied to the window.

protected virtual WindowChrome CreateWindowChrome()

Returns

WindowChrome:

The WindowChrome instance that was created.

OnPreviewKeyDown(KeyEventArgs)

Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameter Type Description
e KeyEventArgs

The KeyEventArgs that contains the event data.