I. Summary
This article is mainly about the WPF layout system to do a simpler introduction, everyone knows: The UI is a good piece of software is very important factor, if not a beautiful UI, how powerful features will also appear that the software is very fragile and no investment value. This article is introduced in the form of total score: first of all, the WPF panel to do a general understanding, and then explain the basic use of the Panel (respectively, in XAML and C # Two ways to achieve the same function, easy to learn), layout integrated application, custom layout control and the final summary, I hope to help.
Two. Outline of this article
· 1. The SUMMARY
· 2. Outline of this article
· 3. General Introduction
· 4.Canvas
· 5.StackPanel
· 6.WrapPanel
· 7.DockPanel
· 8.Grid
· 9.UniformGrid
· 10.ViewBox
· 11.Border
· 12.ScrollViewer
· 13. Integrated application of the layout
· 14. Custom Layout Control
· 15. This paper concludes
· 16. Series Progress
· 17. Related Code
Three. General Introduction
The layout controls for WPF are placed and arranged in a WPF application using the Panel element under the base class System.Windows.Controls.Panel. It specifically includes which layout controls and how to use these layout controls, which implement the same functionality in both XAML and C # Two ways, and how to develop custom layout controls, which are the areas discussed in this article: