Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CommandBar description #1529

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions WinUIGallery/DataModel/ControlInfoData.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,29 +315,29 @@
]
},
{
"UniqueId": "CommandBar",
"Title": "CommandBar",
"ApiNamespace": "Microsoft.UI.Xaml.Controls",
"Subtitle": "A toolbar for displaying application-specific commands that handles layout and resizing of its contents.",
"ImagePath": "ms-appx:///Assets/ControlImages/CommandBar.png",
"Description": "The CommandBar simplifies the creation of basic app bars by providing:\n- Automatic layout of commands, with primary commands on the right and secondary commands on the left.\n- Automatic resizing of app bar commands when the app size changes.\nWhen 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.",
"Content": "<p>The bottom app bar on this page is a <b>CommandBar</b> control.</p><p>Add secondary commands and then resize the app to see how the <b>CommandBar</b> automatically adapts to different widths.</p><p>This <b>CommandBar</b> element is in the ItemPage so it can be shared across all control pages in the app. Look at the <i>ItemPage.xaml</i> file in Visual Studio to see the full code for this page.</p>",
"SourcePath": "/CommonStyles/CommandBar_themeresources.xaml",
"Docs": [
{
"Title": "CommandBar - API",
"Uri": "https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.commandbar"
},
{
"Title": "Guidelines",
"Uri": "https://learn.microsoft.com/windows/apps/design/controls/command-bar"
}
],
"RelatedControls": [
"AppBarButton",
"AppBarToggleButton",
"AppBarSeparator"
]
"UniqueId": "CommandBar",
"Title": "CommandBar",
"ApiNamespace": "Microsoft.UI.Xaml.Controls",
"Subtitle": "A toolbar for displaying application-specific commands that handles layout and resizing of its contents.",
"ImagePath": "ms-appx:///Assets/ControlImages/CommandBar.png",
"Description": "Command bars provide users with easy access to your app's most common tasks. Command bars can provide access to app-level or page-specific commands and can be used with any navigation pattern. By default, the command bar shows a row of icon buttons and an optional \"see more\" button, which is represented by an ellipsis [...].",
"Content": "<p>The bottom app bar on this page is a <b>CommandBar</b> control.</p><p>Add secondary commands and then resize the app to see how the <b>CommandBar</b> automatically adapts to different widths.</p><p>This <b>CommandBar</b> element is in the ItemPage so it can be shared across all control pages in the app. Look at the <i>ItemPage.xaml</i> file in Visual Studio to see the full code for this page.</p>",
"SourcePath": "/CommonStyles/CommandBar_themeresources.xaml",
"Docs": [
{
"Title": "CommandBar - API",
"Uri": "https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.commandbar"
},
{
"Title": "Guidelines",
"Uri": "https://learn.microsoft.com/windows/apps/design/controls/command-bar"
}
],
"RelatedControls": [
"AppBarButton",
"AppBarToggleButton",
"AppBarSeparator"
]
},
{
"UniqueId": "MenuBar",
Expand Down