Skip to content

Request: Make FillButton inherit from ICommandBarElement #234

Closed

Description

@hoshiizumiya

Make FillButton inherit from ICommandBarElement will be great to use the FillButton everywhere such as the CommandBar.

Reference:
https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.icommandbarelement

There is an inconvenient situation: I initially expected it to be like AppBarButton and have Lable property, which make it impossible to put it into CommandBar.

Other question:
Is the DefaultLabelPosition only working under CommandBar's property? The DefaultLabelPosition has Right/Left I expected, but I can't set it in the AppBarButton, which only has LabelPosition that doesn't have Right/Left and only have Default/Hidden.

Activity

  1. added
    enhancement
    on Nov 18, 2026
  2. ghost1372 commented on Nov 18, 2026

    @ghost1372
    Owner

    Done 17c39d2
    Yes. CommandBar.DefaultLabelPosition is the bar-wide default. AppBarButton.LabelPosition can only override it per button by collapsing the label. According to the docs, CommandBarDefaultLabelPosition is Bottom, Right or Collapsed. CommandBarLabelPosition is Default or Collapsed. There is no Left

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions