Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Themes and ButtonChrome

 
 
Old 08-30-2007   #1 (permalink)
Martin Smith


 
 

Themes and ButtonChrome

Hello,

I was trying to override the default styling of a button in my
application to add additional content inside the button and in my
style there's something like this:

<ControlTemplate TargetType="{x:Type Button}">
<Microsoft_Windows_Themes:ButtonChrome SnapsToDevicePixels="true"
x:Name="Chrome" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
RenderDefaulted="{TemplateBinding IsDefaulted}"
RenderMouseOver="{TemplateBinding IsMouseOver}"
RenderPressed="{TemplateBinding IsPressed}">
<! -- Content goes here -->
</Microsoft_Windows_Themes:ButtonChrome>
</ControlTemplate>

The problem I have is this: Now when i run my app on Windows XP, the
button doesnt obey the theme but is instead Vista styled all the
time. Is it possible to use ButtonChrome and get it to use the actual
theming.

Thanks in advance,
Martin


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Why use themes? Software
themes Software
Themes Vista General
.wba themes... Vista General
Where have the themes gone? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46