I'm introducing validation in an MVVM style application using the
IDataErrorInfo method and I noticed that the RadGridView control has a
pretty cool default template defined for the error tooltip whereas the
stock WPF controls such as TextBox only provide the red outline by
default. Since I have yet to define my own custom control template for
assigning to the attached Validation.ErrorTemplate property of my
TextBoxes I was curious if there is any simple way that I can reuse the
existing template defined in the Telerik WPF control suite.
I'm guessing it would mainly require that I know the style key so can set these properties manually or though an implicit style. Is there any guidance on how one would go about this and with the least amount of hassle? Also please note that I'm technically not running a WPF application as we are embedding WPF UserControls within a WinForms application for the time being and have no App.xaml file that we could use to declare default resources for the entire application. This means any solution will probably have to be repeated for each user control if that affects the technique recommended to reuse this template.
I'm guessing it would mainly require that I know the style key so can set these properties manually or though an implicit style. Is there any guidance on how one would go about this and with the least amount of hassle? Also please note that I'm technically not running a WPF application as we are embedding WPF UserControls within a WinForms application for the time being and have no App.xaml file that we could use to declare default resources for the entire application. This means any solution will probably have to be repeated for each user control if that affects the technique recommended to reuse this template.