In This Article

TitleBarMenu Class

Represents a System.Windows.Controls.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, IContainItemStorage
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ItemsControl System.Windows.Controls.Primitives.MenuBase System.Windows.Controls.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 System.Windows.DependencyObject

The object from which the property value is read.

Returns

System.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 System.Windows.DependencyObject

The System.Windows.DependencyObject that is the wrapper element.

item System.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

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods