Intersoft ClientUI Documentation
FillChildMode Property
See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace > DockPanel Class : FillChildMode Property






Gets or sets a value indicating the mode that DockPanel used to determine the children element to fill the remaining space.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property FillChildMode As DockFillMode
Visual Basic (Usage)Copy Code
Dim instance As DockPanel
Dim value As DockFillMode
 
instance.FillChildMode = value
 
value = instance.FillChildMode
C# 
[CategoryAttribute("Common Properties")]
public DockFillMode FillChildMode {get; set;}
Delphi 
public read-write property FillChildMode: DockFillMode; 
JScript 
CategoryAttribute("Common Properties")
public function get,set FillChildMode : DockFillMode
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property DockFillMode get_FillChildMode();
public: __property void set_FillChildMode( 
   DockFillMode value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property DockFillMode FillChildMode {
   DockFillMode get();
   void set (    DockFillMode value);
}

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>

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.

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.