Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.27 KB

commandbar_commandbaroverflowpresenterstyle.md

File metadata and controls

47 lines (34 loc) · 2.27 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.CommandBar.CommandBarOverflowPresenterStyle
winrt property

Windows.UI.Xaml.Controls.CommandBar.CommandBarOverflowPresenterStyle

-description

Gets or sets the Style applied to the overflow content of the CommandBar.

-xaml-syntax

<CommandBar CommandBarOverflowPresenterStyle={StaticResource styleResourceKey}/>
- or -
<CommandBar>
  <CommandBar.CommandBarOverflowPresenterStyle>
    <Style TargetType="CommandBarOverflowPresenter">
      oneOrMoreSetters
    </Style>
  </CommandBar.CommandBarOverflowPresenterStyle>
</CommandBar>

-xaml-values

styleResourceKey
styleResourceKeyThe key that identifies the style being requested. The key refers to an existing resource in a ResourceDictionary.
oneOrMoreSetters
oneOrMoreSettersOne or more Setter elements with Property attributes that target the dependency properties of a CommandBarOverflowPresenter.
## -property-value The applied [Style](../windows.ui.xaml/style.md) for the overflow content of the [CommandBar](commandbar.md), if present; otherwise, **null**. The default is **null**.

-remarks

The Style element you use for a CommandBarOverflowPresenter value must specify TargetType="CommandBarOverflowPresenter".

You can style the properties of the internal CommandBarOverflowPresenter that is presenting the overflow content (SecondaryCommands) of a CommandBar. 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.

-examples

-see-also

CommandBar.SecondaryCommands, CommandBarOverflowPresenter