开发者

WPF IDATAError no showing when control becomes visible

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 开发者_StackOverflow中文版the record. Does anyone know how I can refresh the UI or get the error template to show? Thanks!


do you use an adorner for your error template? if so try

<AdornerDecorator>
   <YourStackPanel/>
</AdornerDecorator>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜