Intersoft ClientUI Documentation
WrapPanel Class
Members 



Positions child elements sequentially from left to right or top to bottom. When elements extend beyond the panel edge, elements are positioned in the next row or column.
Object Model
WrapPanel ClassISFramework Class
Syntax
Public Class WrapPanel 
   Inherits Intersoft.Client.Framework.ISPanel
   Implements Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing 
Dim instance As WrapPanel
public class WrapPanel : Intersoft.Client.Framework.ISPanel, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing  
public ref class WrapPanel : public Intersoft.Client.Framework.ISPanel, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing  
Remarks
WrapPanel is used to position child elements in sequential position from left to right, breaking content to the next line when it reaches the edge of its parent container. Content can be oriented horizontally or vertically. WrapPanel is useful for simple flowing user interface (UI) scenarios. It can also be used to apply uniform sizing to all of its child elements.
Example

The following example demonstrates how to create a WrapPanel to display Button controls that wrap when they reach the edge of their container.

XAML
Copy Code
<Grid x:Name="LayoutRoot">
    <Intersoft:WrapPanel Background="Orange" Width="200" Height="100">
        <Button Width="200" Content="Button1"/>
        <Button Content="Button2" Width="80"/>
        <Button Content="Button3" Width="80"/>
        <Button Content="Button4" Width="80"/>
    </Intersoft:WrapPanel>
</Grid>

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Panel
               Intersoft.Client.Framework.ISPanel
                  Intersoft.Client.UI.Controls.WrapPanel

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WrapPanel Members
Intersoft.Client.UI.Controls Namespace

Concepts

WrapPanel
Panels Overview

Send Feedback