Share via


CommandBar.CommandBarOverflowPresenterStyle 屬性

定義

取得或設定套用至 CommandBar 溢位內容的 Style

public:
 property Style ^ CommandBarOverflowPresenterStyle { Style ^ get(); void set(Style ^ value); };
Style CommandBarOverflowPresenterStyle();

void CommandBarOverflowPresenterStyle(Style value);
public Style CommandBarOverflowPresenterStyle { get; set; }
var style = commandBar.commandBarOverflowPresenterStyle;
commandBar.commandBarOverflowPresenterStyle = style;
Public Property CommandBarOverflowPresenterStyle As Style
<CommandBar CommandBarOverflowPresenterStyle={StaticResource styleResourceKey}/>
- or -
<CommandBar>
  <CommandBar.CommandBarOverflowPresenterStyle>
    <Style TargetType="CommandBarOverflowPresenter">
      oneOrMoreSetters
    </Style>
  </CommandBar.CommandBarOverflowPresenterStyle>
</CommandBar>

屬性值

如果存在,則為 CommandBar 溢位內容的套用 Style;否則為 null。 預設值為 null

備註

您用於 CommandBarOverflowPresenter 值的 Style 元素必須指定 TargetType="CommandBarOverflowPresenter"

您可以使用 CommandBar 的內部 CommandBarOverflowPresenter 屬性,將溢位內容呈現 (CommandBarSecondaryCommands) 。 可設定樣式的屬性是Base ItemsControl 類別或Control類別的相依性屬性,例如FontSizePadding,或 CommandBarOverflowPresenter 類別繼承的 FrameworkElement.Margin 等基底元素屬性。

適用於

另請參閱