WPF notes (2.3 StackPanel)--layout

Source: Internet
Author: User
Original: WPF Notes (2.3 StackPanel)--layout

StackPanel is used for small-scale typesetting layouts, such as a local TextBox and button.
The Orientation property has two choices of vertical and horizontal, which determine the layout direction.

All controls have a margin property, which is used to make the controls less crowded, and margin varies with the vertical and horizontal, and of course the margin= "3,3" means that there is a gap in two directions at the same time.
The HorizontalAlignment property is used to adjust the extension direction of the control. The default is stretch, that is, how many places are in the landscape, and the Left/center/right three values, which are only three positions in the landscape, respectively, according to the minimum placeholder. The corresponding VerticalAlignment attributes are similar.

WPF notes (2.3 StackPanel)--layout

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.