ToolBarOverflowPanel.WrapWidth Property

 

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)

member WrapWidth : float with get, set

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

WrapWidthProperty

Metadata properties set to true

AffectsMeasure

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
Show: