Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一般来说,如何设置一个控件来占据其容器的整个高度和宽度?我是 Silverlight 的新手,并且对控件没有 Dock 属性感到惊讶(除非我遗漏了什么)。
如果您使用星号“*”符号设置宽度和高度,它将占用容器中“左侧”的空间。将高度和宽度设置为“自动”将使控件使用尽可能多的空间来显示控件中的内容。
标签