Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-style-controls-on-a-toolbar.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.7 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Style Controls on a ToolBar 03/30/2017
styling controls on toolbar [WPF]
toolbars [WPF]
customizing controls on toolbar [WPF]
ba6ae056-d6a9-4c24-90f8-467ab0bc0b1a

How to: Style Controls on a ToolBar

The xref:System.Windows.Controls.ToolBar defines xref:System.Windows.ResourceKey objects to specify the style of controls within the xref:System.Windows.Controls.ToolBar. To style a control in a xref:System.Windows.Controls.ToolBar, set the x:key attribute of the style to a xref:System.Windows.ResourceKey defined in xref:System.Windows.Controls.ToolBar.

The xref:System.Windows.Controls.ToolBar defines the following xref:System.Windows.ResourceKey objects:

Example

The following example defines styles for the controls within a xref:System.Windows.Controls.ToolBar.

[!code-xamlToolBar_snip#ToolBarAllStyles]
[!code-xamlToolBar_snip#ToolBar]

See also