CommandBar 中紧凑模式下的 AppBarButton

AppBarButton in compact mode inside CommandBar

我在 CommandBar 的文档中找到了这样的描述:

The app bar button controls are characterized by an icon and associated label. They have two sizes; normal and compact. By default, the text label is shown. When the IsCompact property is set to true, the text label is hidden. When used in a CommandBar control, the CommandBar sets the IsCompact property automatically as the control is opened and closed.

如果打开了 CommandBar,我能否以某种方式让 IsCompact 模式在 AppBarButton 期间保持活动状态?

如果我使用 AppBar 它可以工作,但是,它没有 SecondaryCommands 而且我可以在文档中看到某种建议使用 CommandBar 而不是 AppBar for Windows 10 个应用程序。

You should use the AppBar only when you are upgrading a Universal Windows 8 app that uses the AppBar, and need to minimize changes. For new apps in Windows 10, we recommend using the CommandBar control instead.

我正在尝试 CommandBarOpeningOpened 事件,但我对任何解决方案都不太成功。

覆盖 AppBarButton 模板(您可以在此处找到它:https://msdn.microsoft.com/en-us/library/windows/apps/mt299122.aspx?f=255&MSPPError=-2147217396),并删除紧凑视觉状态中的更改。

这样他们看起来总是一样的。