What is Expander in WCF

Expander is a layout in which we can add control and expand it when we need. When have less space in our application then we can use expander layout. We can assign the expand direction either down, up, left or right. At the time of expander creation we can assign IsExpanded property true or false. It has the same drawback as GroupBox that it can contain only one control.

Example of Expander Layout

	<Window x:Class="WpfApplication2.MainWindow"
        Title="Tech Altum" Height="500" Width="700">
    <Expander IsExpanded="False" ExpandDirection="Down" Header="Expand To See the Content">
        <Button DockPanel.Dock="Left" >Left Button</Button>
        <Button DockPanel.Dock="Bottom">Bottom Button</Button>
        <Button DockPanel.Dock="Right">Right Button</Button>
        <Button DockPanel.Dock="Top">Top Button</Button>
        <Button>Extra Space</Button>

The output of this example is as follows:-

		Expander in WPF

		Figure 1

When you click on expander it will show the content.