In This Article

TitleBarMenu Class

Represents a Menu that appears in a window title bar and uses matching title bar button brushes for the top-level items.

public class TitleBarMenu : Menu
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl MenuBase Menu object

Constructors

TitleBarMenu()

Initializes an instance of the class.

public TitleBarMenu()

Methods

GetIsInTitleBar(DependencyObject)

Gets the value of the IsInTitleBar attached property for the specified object.

public static bool GetIsInTitleBar(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

The element used to display the specified item.

item object

The item to display.

Fields

IsInTitleBarProperty

Defines the IsInTitleBar property.

public static readonly DependencyProperty IsInTitleBarProperty

Extension Methods