Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

WPF Expander Control

Article:
Viewed:  1204 
Posted On:  02/10/2013 00:49:09 
How to use WPF Expander Control.. ? 

In this article I am going to explain WPF Expander controlAn Expander control is used to wrap or expand the content of items. You may have noticed some websites provide functionalty to close and open some controls. This can be achieved in WPF using the Expander control. 

Below is the XAML Code:

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <Grid>
        <Expander Header="Select Country">
            <StackPanel Margin="10,4,0,0">
                <CheckBox Margin="4" Content="India" />
                <CheckBox Margin="4" Content="USA" />
                <CheckBox Margin="4" Content="UK" />
            </StackPanel>
        </Expander>
    </Grid> 

</Window>

 WPF Expander Control 1.png

Image 1.

WPF Expander Control 2.png

Image 2.

  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us