Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Layout and Controls in WPF
WhatsApp
Manas Patnaik
12y
15.7k
0
0
100
Article
Half of the battle can be won through UI and Control placement in software paradigm. All of us know that a good UI leaves extraordinary impact on the user, so this article is about control placement and control layout in WPF. In this article we will cover the following topics.
Layout
Classic Controls
Layout
Layout in WPF are more versatile than for Windows Forms controls. In Windows Forms most of the frequently used layouts use the coordinate based control placement while in WPF it is slot based depending on the screen space. The most common used layouts in WPF are as follows:
Canvas
Used Coordinate based Control Layout (Same as panel in normal Windows Forms)
Stack Layout
Control are placed horizontally / vertically one above the other
Wrap Layout
Controls are placed sequentially horizontally / vertically
Grid Layout
Creates column, row based grid and each cell allows controls to be placed
Dock Panel
Docks the control on specified area
A collected sample of all can be seen below
More details can be found
http://msdn.microsoft.com/en-us/library/ms745058.aspx
.
Classic Controls
The control set in WPF is rich with wide support for data binding. A full comparison of WPF and winform control can be found from here.
Additional Link for Controls
http://www.simple-talk.com/content/file.ashx?file=3354
http://www.simple-talk.com/dotnet/.net-framework/from-winform-to-wpf-a-quick-reference-guide/
Layout in WPF
Control in WPF
WPF control
WPF
Up Next
Ebook Download
View all
WPF Simplified: Build Windows Apps Using C# and XAML
Read by 1.5k people
Download Now!
Learn
View all
Membership not found