WPF style problem with custom control and textbox-derived class
Posted
by Martin
on Stack Overflow
See other posts from Stack Overflow
or by Martin
Published on 2010-04-20T18:25:12Z
Indexed on
2010/04/20
20:13 UTC
Read the original article
Hit count: 262
I had the following situation:
- main application has app.xaml, which sets the style for TextBox controls
- a custom control is implemented in a separate DLL, and uses several TextBox controls
The main application's TextBox style is applied to the custom control's TextBox controls. Cool!
My problem comes in because I need to use a class derived from TextBox in the custom control. Now the main app's TextBox style is no longer applied. Can the custom control DLL have something like "app.xaml" where I can set the style for all my derived TextBox controls? Or can the main application somehow set the style for all TextBox-derived classes?
Thanks!
© Stack Overflow or respective owner