WPF Control Templating: Keeping Windows look and feel

Posted by Tyler on Stack Overflow See other posts from Stack Overflow or by Tyler
Published on 2010-05-27T21:09:05Z Indexed on 2010/05/27 21:11 UTC
Read the original article Hit count: 400

Filed under:
|
|
|

I'm working on a control template for an inherited TextBox class. I'd like to use this template to add additional controls with the ScrollViewer. I can achieve that goal just fine, what I can't do recreate the border in such away that it matches the Windows look and feel.

I have Windows Classic as my theme on XP. Textboxes are typically shown with the standard inset border style. With the XP Fischer Price theme, borders of textbox are a flat style and light blue.

Is there any way of specifying something like this in the template? Ideally it would use the theme default (grey inset for Classic, flat and light blue for fischer price theme).

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf