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, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost
Inheritance:
Object DispatcherObject DependencyObject 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.

[AttachedPropertyBrowsableForType(typeof(MenuItem))]
public static bool GetIsInTitleBar(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

Boolean:

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

Inherited Members

Extension Methods