开发者

Update ValidationSummary after UpdateSource

开发者 https://www.devze.com 2023-04-01 14:01 出处:网络
I\'m forcing an update of every textBox in a silverlight page: this.txtName.GetBindingExpression(TextBox.TextProperty).UpdateSource();

I'm forcing an update of every textBox in a silverlight page:

this.txtName.GetBindingExpression(TextBox.TextProperty).UpdateSource();
开发者_开发技巧

Everything works fine (the textbox shows its error, etc...) but ValidationSummary is not refreshed...

Any idea??


Edit:

After some tests I've realized it was because ValidationSummary wasn't loaded yet. I'll start a new question to ask this...


I just had to call the UpdateSource on Loaded page event.


NotifyOnValidationError = “True”?

0

精彩评论

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