Intersoft ClientUI Documentation
FillChildMode Property (DockPanel)



Gets or sets a value indicating the mode that DockPanel used to determine the children element to fill the remaining space.
Syntax
<CategoryAttribute("Common Properties")>
Public Property FillChildMode As DockFillMode
Dim instance As DockPanel
Dim value As DockFillMode
 
instance.FillChildMode = value
 
value = instance.FillChildMode
[CategoryAttribute("Common Properties")]
public DockFillMode FillChildMode {get; set;}
[CategoryAttribute("Common Properties")]
public:
property DockFillMode FillChildMode {
   DockFillMode get();
   void set (    DockFillMode value);
}
Remarks

The main difference between Intersoft DockPanel and standard dock panel is that Intersoft DockPanel provides FillChildMode property instead of LastChildFill property. With this approach you do not need to put the element you want to set as fill element as the last child, simply set DockPanel.IsFillElement attached property.

Example
XAML
Copy Code
<Grid x:Name="LayoutRoot">
    <Intersoft:DockPanel HorizontalAlignment="Center" Height="300" VerticalAlignment="Center" Width="400" FillChildMode="Custom">
        <Grid Intersoft:DockPanel.Dock="Top" Height="50" Background="Black"/>
        <Grid Intersoft:DockPanel.IsFillElement="True" Background="White" />
        <Grid Intersoft:DockPanel.Dock="Bottom" Height="50" Background="Black"/>
    </Intersoft:DockPanel>
</Grid>
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

DockPanel Class
DockPanel Members

Concepts

DockPanel
Panels Overview

Send Feedback