什么是WPF面板和放大器的良好指南?布局一般? [英] What's a good guide to WPF Panels & layout in general?

查看:70
本文介绍了什么是WPF面板和放大器的良好指南?布局一般?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于从System.Windows.Controls.Panel继承的控件的各种行为,是否有一个很好的简洁指南?还是只是一般的WPF布局指南?

尤其是,我对面板如何处理宽度或高度设置为自动"且水平或垂直对齐设置为拉伸"的子对象感兴趣.一些布局使对象填充其容器的大小,另一些布局仅使它们根据其自身的内容进行大小调整.

解决方案

请参见 http ://://msdn.microsoft.com/zh-cn/library/ms754152.aspx 作为开始……听起来,您可能对用户界面面板"部分中的表特别感兴趣. >

Is there a good, concise guide to the various behaviors of the controls that inherit from System.Windows.Controls.Panel? Or just a WPF layout guide in general?

In particular, I'm interested in how the panels handle child objects that have width or height set to "Auto" and Horizontal or Vertical Alignment set to "Stretch". Some layouts cause the objects to fill the size of their container, others just cause them to size based on their own content.

解决方案

See http://msdn.microsoft.com/en-us/library/ms754152.aspx for a start... it sounds like you may be particularly interested in the table in the "User Interface Panels" section.

这篇关于什么是WPF面板和放大器的良好指南?布局一般?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆