ToolBarOverflowPanel::WrapWidth Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the recommended width for an overflow ToolBar before items flow to the next line.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

property double WrapWidth {
	double get();
	void set(double value);

Property Value

Type: System::Double

A double value that represents the recommended width of the ToolBar.

If you set WrapWidth to 100, the width of the overflow ToolBar is 100, and all the items that can fit into an area of that size are in the main ToolBar. If there is only one item, and it requires a size of 120, the toolbar width expands automatically from 100 to 120.

Identifier field


Metadata properties set to true


The following example shows how to use the WrapWidth property with a ToolBarOverflowPanel.

<ToolBarOverflowPanel WrapWidth="50">

.NET Framework
Available since 3.0
Return to top