![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| 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 | |||