In Focus
Kolkata Chapter Developer Day: May 25
C# Corner Delhi Chapter Meet, May-18, 2013 Official Recap
Istanbul Chapter May 2013 2nd Seminar Announced : Learn WinJS, Windows Store, MVC
ANNOUNCEMENT: April 2013 Month Winners
Email :
Password :
Remember me?
Forgot password
Contribute
An Article
A Blog
A News
A Video
A Link
An Interview Question
Ask a Question
TECHNOLOGIES
.NET 4.5
Current Affairs
Learn .NET
SharePoint 2010
Web Development
.NET Assemblies
Databases & DBA
LightSwitch 2012
SharePoint 2013
Web Services in C#
ADO.NET in C#
Design & Architecture
LINQ
Silverlight with C#
Windows 8
AJAX in C#
Exception Handling C#
Mobile & Embedded
Smart Devices
Windows Azure
Android Programming
Graphics Design
Office 2013
SQL
Windows Controls C#
Articles C#
Hardware
OOP/OOD
SQL Server 2012
Windows Forms C#
ASP.NET Controls in C#
How do I
Operating Systems
Testing
Windows Phone 8
ASP.NET MVC with C#
HTML 5
PHP
TypeScript
Windows Server 2012
ASP.NET Programming
Internet & Web
Products
Visual C#
Windows Store Apps
C# Language
iPhone/iPad
Project Management
Visual Studio .NET
Workflow Foundation in C#
C# Tutorials
Java
Reports using C#
Visual Studio 2010
WPF
C, C++, MFC
Java and .NET
Robotics & Hardware
Visual Studio 2012
XAML
Career Advice
JavaScript, CSS
Security in .NET
WCF with C#
XML
Chapters
JQuery
Request a new Category
|
View All
ANSWERS
BLOGS
VIDEOS
INTERVIEWS
BOOKS
LINKS
NEWS
CHAPTERS
CAREER ADVICE
Making your Web Browser in C#
HTML 5 vs Native Apps
Secure Your Android Application from Hackers
Why to fear Object Oriented Programming approach
Check upcoming B'day in Asp.net
Happy Birthday Destin Joy
Compare strings using StringComparison.Ordin ...
Class vs Structure
Get The Value From DataGridView To TextBox On c#
Access Master Page Control In Child Page
Blog
WPF: How to display content in an Expander
Posted by
Nipun Tomar
in
Blogs
|
WPF
on
Dec 16, 2011
The following XAML demonstrates how to use two Expander objects.
Tweet
5302
0
0
The following XAML demonstrates how to use two
Expander
objects.The first
Expander
expands horizontally and uses an image in its header. The second
Expander
contains a set of
System.Windows.Controls.Button
objects and expands downward.
XAML CODE:
<
Window
x
:
Class
="Expander.MainWindow"
xmlns
=
http://schemas.microsoft.com/winfx/2006/xaml/presentation
xmlns
:
x
=
http://schemas.microsoft.com/winfx/2006/xaml
Title
="MainWindow"
Height
="200"
Width
="300">
<
ScrollViewer
HorizontalScrollBarVisibility
="Auto"
VerticalScrollBarVisibility
="Auto">
<
StackPanel
HorizontalAlignment
="Left">
<
Expander
ExpandDirection
="Right"
IsExpanded
="True">
<
Expander.Header
>
<
Image
Source
="Apress.gif"/>
</
Expander.Header
>
<
TextBlock
TextWrapping
="Wrap"
MaxWidth
="200">
Windows Presentation Foundation (WPF) is the presentation
subsystem feature of the .NET Framework 4.0,that provide good
design and advance controls. Silverlight
i
s the Subset of
WPF.
Through WPF we can create Windows and WebBrowser Application.
</
TextBlock
>
</
Expander
>
<
Expander
Header
="Buttons">
<
StackPanel
>
<
StackPanel
Orientation
="Horizontal">
<
Button
Content
="Button 1"
Margin
="2"/>
<
Button
Content
="Button 2"
Margin
="2"/>
<
Button
Content
="Button 3"
Margin
="2"/>
<
Button
Content
="Button 4"
Margin
="2"/>
<
Button
Content
="Button 5"
Margin
="2"/>
</
StackPanel
>
<
StackPanel
HorizontalAlignment
="Left">
<
Button
Content
="Button A"
Margin
="2" />
<
Button
Content
="Button B"
Margin
="2" />
<
Button
Content
="Button C"
Margin
="2" />
<
Button
Content
="Button D"
Margin
="2" />
<
Button
Content
="Button E"
Margin
="2" />
</
StackPanel
>
</
StackPanel
>
</
Expander
>
</
StackPanel
>
</
ScrollViewer
>
</
Window
>
This Feature is Sponsored By
DynamicPDF Merger is a developers dream for interacting with any existing PDF documents. Merge, append, split, form fill, flatten stamp and so much more.
WPF popup UserControl
What is WPF?
post comment
COMMENT USING
PREMIUM SPONSORS
iPhone, Android & Web Development Services
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
More Blogs from this Blogger
How to reset Dock in MAC OS
How to list all properties of an Entity
WPF XAML content with special character
WPF: Textblock Vs Label
Show/hide Solution and Advanced Build Configurations
Recycle IIS Application Pool
How To Disable All Triggers on a Database
How to get all dates between date range in sql query
Difference between URL and URI
Difference between RDL and RDLC formats
View All
SPONSORED BY
DynamicPDF ReportWriter Suite
PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Follow @twitterapi
Latest Blogs
Import Email from Gmail in ASP.NET
Difference between IEnumerable and IEnumerator
How to get thumbnail image from youtube embed code
Spilit Letter Of Word From String in SQL Server
Install Ajax control Toolkit in Visual Studio 2008
How to highlight grid view row and change row color on mouse over and Check box selection in ASP.NET
LEN and DATALENGTH Function in SQL Server
TextBox validation using JQuery
Android Studio not Starting Up After Installation
Check upcoming B'day in Asp.net
View All
Poll
Result
All Polls
What is the best product to build Mobile apps?
What is the best product to build Mobile apps
PhoneGap
Icenium
Xamarin Studio
KendoUI Mobile
JQueryMobile
Native iOS/Android
What is the best product to build Mobile apps
Options
Votes
%
PhoneGap
0
0.00
Icenium
0
0.00
Xamarin Studio
0
0.00
KendoUI Mobile
0
0.00
JQueryMobile
60
90.91
Native iOS/Android
6
9.09
Total
66
100%