当控件变得可见时,WPF IDATAError 不显示
我对 ErrorTemplate 有一个奇怪的问题。我创建了一个 WPF MVVM 应用程序。我正在使用 ErrorTemplate 和 IDataError 接口来显示错误。在我的表单上,我有一些折叠在堆栈面板中的控件。当我显示控件时,错误模板未显示,但错误功能正在运行,因为用户无法保存记录。有谁知道如何刷新用户界面或显示错误模板? 谢谢!
I have a weird issue with the ErrorTemplate. I created a WPF MVVM application. I am using a ErrorTemplate and the IDataError interface to show errors. On my form I have some controls that are collapsed in a stack panel. When I show the controls the error template is not showing but the error functionality is working because the user can't save the record. Does anyone know how I can refresh the UI or get the error template to show?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的错误模板使用装饰器吗?如果是这样尝试
do you use an adorner for your error template? if so try