我在一个名为ucAddressInformation的用户控件中使用了toolkist数据表单dfAddr。我将ucAddressInformation放在另一个名为ucParentInformation.Initially的用户控件中,当ucParentInformation加载时,dfAddr AutoEdit属性为false。因此,当我在ucParentInformation中调用AutoEdit = true来编辑dfAddr时,它会告诉我“元素已经是另一个元素的子元素”。我不确定设置AutoEdit属性在内部做了什么,它会再次将相同的元素添加到我的父usercontrol中吗?
发布于 2011-11-24 12:10:40
这似乎是xaml中的一个错误,但如果没有实际的代码和更好的解释,我会说我们没有足够的信息。你能发布一些你的xaml和代码的示例代码吗?
https://stackoverflow.com/questions/8236691
复制相似问题