Reputation: 1503
Is it possible to show custom messages in the red ribbon in silverlight? Is it a built in feature which can only be used in validation?
Upvotes: 0
Views: 64
Reputation: 17327
Implement INotifyDataErrorInfo. Anything returned by GetErrors
will be displayed in the "red ribbon". The way we do it, our class has a List<string>
and a method AddError
. AddError
adds a string to the list and raises the ErrorsChanged
event. GetErrors
returns the list.
Upvotes: 1
Reputation: 5325
You can use custom Validation messages pretty easily with the Silverlight Validator & Input Toolkit
Upvotes: 1