WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Check description of CommandBar please

Open Jay-o-Way opened this issue 1 year ago • 3 comments

Issue type

enhancement

Which version of the app?

WinUI 3 Gallery

Description

App says

[...] When you need an app bar that contains only AppBarButton,AppBarToggleButton , and AppBarSeparator controls, use a CommandBar. If you need more complex content, such as images, progress bars, or text blocks, use an AppBar control."

MS Learn says

[!IMPORTANT] 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.

https://learn.microsoft.com/uwp/api/windows.ui.xaml.controls.appbar?view=winrt-22621

Jay-o-Way avatar Mar 31 '24 19:03 Jay-o-Way

Also, what's with "primary on the right and secondary on the left" ?

Jay-o-Way avatar Apr 09 '24 16:04 Jay-o-Way

@jwmsft Are you able to weigh in?

karkarl avatar Apr 11 '24 18:04 karkarl

@Jay-o-Way, thanks for letting us know about this issue. It looks like CommandBar still has the description from the original Windows 8 version of the control, and it wasn't updated for the design and behavior changes that happened in Windows 10. (If you're wondering how the app ever got the Windows 8 descriptions in the first place, the WinUI Gallery is an evolution of a sample that was originally written for the Windows 8 docs.)

@karkarl, the description should be updated to reflect the current documentation.

jwmsft avatar Apr 11 '24 19:04 jwmsft