ToolBarOverflowPanel.WrapWidth Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

Public Property WrapWidth As Double

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: