sony
sony

Reputation: 1503

Red ribbon instead of messageboxes - silverlight?

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

Answers (2)

cadrell0
cadrell0

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

MyKuLLSKI
MyKuLLSKI

Reputation: 5325

You can use custom Validation messages pretty easily with the Silverlight Validator & Input Toolkit

Upvotes: 1

Related Questions