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)
XML Namespace:

public double WrapWidth { get; set; }
/** @property */
public double get_WrapWidth ()

/** @property */
public void set_WrapWidth (double value)

public function get WrapWidth () : double

public function set WrapWidth (value : double)

<object WrapWidth="double" .../>

Property Value

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

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

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

<ToolBarOverflowPanel WrapWidth="50">

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions