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.
我正在 WPF 中构建一个基于导航的应用程序。我有一个包含一些选项卡的主窗口。每个选项卡都包含一个框架,其中应显示相关页面。
我希望在更改主窗口的大小时调整我的页面(及其控件)的大小。我尝试设置边距而不是设置宽度和高度,但这不起作用。
我现在看到了我的错误。要拥有一个可调整大小的页面,您应该只设置 d:DesignHeight 和 d:DesignWidth,而不是 Height 和 Width 本身。