我使用ContentControl动态呈现各种UserControl派生。当我调整父Window的大小时,我想不出如何让内容伸展。我找到了很多像这样的参考资料,但它仍然不适合我。WpfApplication3">
<views:UserControl1ChildView = new UserControlViewModel();}
public partial class UserControl1 : UserControl public UserControl1() InitializeComponent错误会根据我是第一次拖动控件、删除控件还是其他任何情况而变化。常量是,如果我使Person可序列化,那么错误就会消失。为什么在将元素拖放到表单上时会出现错误?典型的修复方法是什么?