Почему у меня не работает CommandBar?
<CommandBar>
<CommandBar.PrimaryCommands>
<AppBarButton Icon="AttachCamera" Label="Attach Camera"/>
<AppBarSeparator />
<AppBarButton Icon="Like" Label="Like"/>
<AppBarButton Icon="Dislike" Label="Dislike"/>
<AppBarSeparator />
<AppBarButton Icon="Orientation" Label="Orientation"/>
</CommandBar.PrimaryCommands>
</CommandBar>
У меня этот код не работает(я его взял с XAML Controls Gallery)
вот:
А ето с XAML Controls Gallery.

Как это исправить?
Ответы (1 шт):
Автор решения: demonplus
→ Ссылка
XAML Control Gallery: открываем и читаем
Shows all of the XAML controls in an interactive format. This app is the interactive companion to the Fluent Design Guidelines and shows the usage of both UWP Xaml APIs and Windows UI Library APIs.
Т.е. это контролы для приложений UWP и Windows App SDK (WinUI3). Последний тип приложений сейчас рекомендуется Microsoft для создания новых десктопных приложений.
Выберите нужный вам тип приложения, создайте его и уже там контролы будут правильно работать.