Intersoft ClientUI Documentation
UXOverflowStackPanel Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua Namespace : UXOverflowStackPanel Class






Provides an advanced stack panel that supports overflow layout.

Object Model

UXOverflowStackPanel Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Provides an advancd stack panel that supports overflow layout.")>
Public Class UXOverflowStackPanel 
   Inherits Intersoft.Client.UI.Controls.Interactivity.UXStackPanel
   Implements IFramework, ILicensing, IStackPanel 
Visual Basic (Usage)Copy Code
Dim instance As UXOverflowStackPanel
C# 
[DescriptionAttribute("Provides an advancd stack panel that supports overflow layout.")]
public class UXOverflowStackPanel : Intersoft.Client.UI.Controls.Interactivity.UXStackPanel, IFramework, ILicensing, IStackPanel  
Delphi 
public class UXOverflowStackPanel = class(Intersoft.Client.UI.Controls.Interactivity.UXStackPanel, IFramework, ILicensing, IStackPanel)
JScript 
DescriptionAttribute("Provides an advancd stack panel that supports overflow layout.")
public class UXOverflowStackPanel extends Intersoft.Client.UI.Controls.Interactivity.UXStackPanel implements IFramework, ILicensing, IStackPanel 
Managed Extensions for C++ 
[DescriptionAttribute("Provides an advancd stack panel that supports overflow layout.")]
public __gc class UXOverflowStackPanel : public Intersoft.Client.UI.Controls.Interactivity.UXStackPanel, IFramework, ILicensing, IStackPanel  
C++/CLI 
[DescriptionAttribute("Provides an advancd stack panel that supports overflow layout.")]
public ref class UXOverflowStackPanel : public Intersoft.Client.UI.Controls.Interactivity.UXStackPanel, IFramework, ILicensing, IStackPanel  

Example

The following example demonstrates how to use a UXOverflowStackPanel to moved the overflow items to overflow container panel.

In this sample there are eight images that registered under UXItemsControl that use UXOverflowStackPanel as its ItemsPanel since the container size is restricted to 500 pixel, UXOverflowStackPanel can only render four of them, while the other four is passed to overflow container panel.

XAML Copy Code
<Grid x:Name="LayoutRoot" Width="800" Height="600" Background="White">
    <Intersoft:DockPanel Width="600">
        <StackPanel Intersoft:DockPanel.Dock="Right" x:Name="OverflowPanel" Width="100" Orientation="Vertical" VerticalAlignment="Bottom" Background="#FFA0FF92"/>
        <Intersoft:UXItemsControl Intersoft:DockPanel.Dock="Bottom" Height="100" Orientation="Horizontal" ItemsPanel="{StaticResource ItemsPanelTemplate1}" Background="#FFE7FF5A">
            <Image Height="100" Source="/Penguins.jpg" Stretch="Fill" Width="100" Margin="8"/>
            <Image Height="100" Source="/Tulips.jpg" Stretch="Fill" Width="100" Margin="8"/>
            <Image Height="100" Source="/Lighthouse.jpg" Stretch="Fill" Width="100" Margin="8"/>
            <Image Height="100" Source="/Chrysanthemum.jpg" Stretch="Fill" Width="100" Margin="8"/>
            <Image Height="100" Source="/Desert.jpg" Stretch="Fill" Width="100" Margin="8"/>
            <Image Height="100" Source="/Hydrangeas.jpg" Stretch="Fill" Width="100" Margin="8"/>
            <Image Height="100" Source="/Jellyfish.jpg" Stretch="Fill" Width="100" Margin="8"/>
            <Image Height="100" Source="/Koala.jpg" Stretch="Fill" Width="100" Margin="8"/>
        </Intersoft:UXItemsControl>
    </Intersoft:DockPanel>
</Grid>

Remarks

UXOverflowStackPanel is an innovative panel featuring built-in items overflow detection mechanism. The overflow logic works by intelligently measuring the desired size of all the contained items against the panel's actual dimension.

The items that exceeded  the panel's actual dimension, called overflow items, will be seamlessly removed from the UXOverflowStackPanel to ensure the remaining items to fit into the available dimension. Consequently, the overflow items are moved to the overflow container panel which can be any type of panels that derive from Panel class. The overflow container panel can be specified in the OverFlowContainer property of the UXOverflowStackPanel.

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.Interactivity.UXPanel
                     Intersoft.Client.UI.Controls.Interactivity.UXStackPanel
                        Intersoft.Client.UI.Aqua.UXOverflowStackPanel

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.