CommandBarOverflowPresenter CommandBarOverflowPresenter CommandBarOverflowPresenter CommandBarOverflowPresenter Class

Definition

Displays the overflow content of a CommandBar.

public : class CommandBarOverflowPresenter : ItemsControl, ICommandBarOverflowPresenterpublic class CommandBarOverflowPresenter : ItemsControl, ICommandBarOverflowPresenterPublic Class CommandBarOverflowPresenter Inherits ItemsControl Implements ICommandBarOverflowPresenter// This API is not available in Javascript.
See Remarks

Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Remarks

You don't typically declare object elements for CommandBarOverflowPresenter in XAML. There are no properties that a CommandBarOverflowPresenter can set in XAML syntax and there's no reason to declare a CommandBarOverflowPresenter as a resource.

The main purpose of the CommandBarOverflowPresenter class is to be the default internal presenter for the SecondaryCommands value of a CommandBar. You extend presentation behavior of the CommandBarOverflowPresenter by setting a value for the CommandBarOverflowPresenterStyle property of the CommandBar. The Style you declare that fills the CommandBarOverflowPresenterStyle property must specify TargetType="CommandBarOverflowPresenter". The properties that can be styled are the dependency properties of the base ItemsControl class or Control class, such as FontSize or Padding, or base element properties such as FrameworkElement.Margin that the CommandBarOverflowPresenter class inherits.

CommandBarOverflowPresenter exists as a class and has a default constructor basically to satisfy XAML infrastructure support, when it's specified as the TargetType of the Style used for a CommandBarOverflowPresenterStyle value.

Control style and template

You can modify the default Style and ControlTemplate to give the control a unique appearance. For information about modifying a control's style and template, see Styling controls. The default style, template, and resources that define the look of the control are included in the generic.xaml file. For design purposes, generic.xaml is available in the (Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP<SDK version>\Generic folder from a Windows Software Development Kit (SDK) installation. Styles and resources from different versions of the SDK might have different values.

Starting in Windows 10, version 1607 (Windows Software Development Kit (SDK) version 10.0.14393.0), generic.xaml includes resources that you can use to modify the colors of a control in different visual states without modifying the control template. In apps that target this software development kit (SDK) or later, modifying these resources is preferred to setting properties such as Background and Foreground. For more info, see the Light-weight styling section of the Styling controls article.

This table shows the resources used by the CommandBarOverflowPresenter control.

Resource keyDescription
CommandBarOverflowPresenterBackgroundBackground color at rest
CommandBarOverflowPresenterBorderBrushBorder color at rest

Constructors

CommandBarOverflowPresenter() CommandBarOverflowPresenter() CommandBarOverflowPresenter() CommandBarOverflowPresenter()

Initializes a new instance of the CommandBarOverflowPresenter class.

public : CommandBarOverflowPresenter()public CommandBarOverflowPresenter()Public Sub New()// This API is not available in Javascript.

See Also