开发者

WPF IDATAError no showing when control becomes visible

开发者 https://www.devze.com 2023-01-25 19:01 出处:网络
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 i

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

精彩评论

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