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 TitleBarMenu 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:

The object's value.

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 System.Windows.DependencyObject that is the wrapper element.

item object

The item that is being wrapped.

Fields

IsInTitleBarProperty

Identifies the IsInTitleBar dependency property. This field is read-only.

public static readonly DependencyProperty IsInTitleBarProperty