Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Panels Namespace / AutoStretchStackPanel Class
Members Example


    AutoStretchStackPanel Class
    This panel stretches the children in the orientation direction so that they completely fill the panel area.
    Syntax
    'Declaration
     
    <LocalizabilityAttribute(LocalizationCategory.Ignore)>
    <ContentPropertyAttribute("Children")>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class AutoStretchStackPanel 
       Inherits AnimationPanel
     
    'Usage
     
    Dim instance As AutoStretchStackPanel
    Example
    This sample will fill the entire area with bars of red, blue, green, and yellow.
    <Window x:Class="AutoStretchStackPanelSample.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
            Title="AutoStretchStackPanelSample">
      <Grid>
        <xctk:AutoStretchStackPanel>
          <Rectangle Stretch="Fill"
                    Fill="Red" />
          <Rectangle Stretch="Fill"
                    Fill="Blue" />
          <Rectangle Stretch="Fill"
                    Fill="Green" />
          <Rectangle Stretch="Fill"
                    Fill="Yellow" />
        </xctk:AutoStretchStackPanel>
      </Grid>
    </Window>
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Panel
                         Xceed.Wpf.Toolkit.Panels.PanelBase
                            Xceed.Wpf.Toolkit.Panels.AnimationPanel
                               Xceed.Wpf.Toolkit.Panels.AutoStretchStackPanel

    Requirements

    Target Platforms: Windows 11, Windows 10, 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