The relationship between WPF's StackPanel, WrapPanel, and WrapPanel

Source: Internet
Author: User

First, StackPanel

StackPanel is to display the controls in a stacked manner

1. You can use the Orientation property to change the stacking order into horizontal (orientation= "horizontal") and vertical (orientation= "Vertical") to guarantee the effect you want to achieve.

Second, WrapPanel

The control is displayed as a stream from left to right, top to bottom, and functions like FlowLayout in the Java AWT layout

Third, DockPanel

Above, below, left, right, and middle are the basic structure of the layout, similar to the Java AWT layout in the BorderLayout.

However, unlike BorderLayout, where multiple controls can be placed at the same time, multiple controls placed in the same area are laid out in a stackpanel manner.

The relationship between WPF's StackPanel, WrapPanel, and WrapPanel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.