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 - How does ToolBar change the style of Buttons?

 
 
Old 02-20-2007   #1 (permalink)
Keith Patrick


 
 

How does ToolBar change the style of Buttons?

I'm trying to adopt the flat look of regular ToolBar buttons in a regular
stackpanel (can't get the damn overflow arrow to go away on my toolbar), but
even after looking at the various styles and templates for my ToolBar
instance, I cannot see where the button style gets set and therefore, I
cannot adopt the same style for my regular buttons. Could someone enlighten
me as to how the style gets set so that I can poke around and try to figure
out everything in the button style?



My System SpecsSystem Spec
Old 02-20-2007   #2 (permalink)
Keith Patrick


 
 

Re: How does ToolBar change the style of Buttons?

Well, I dug out Reflector and followed through a bit to find that it uses a
resource key called ToolBarButtonStyle for all regular buttons.
Unfortunately, {StaticResource ToolBarButtonStyle} throws an exception, and
{DynamicResource ToolBarButtonStyle} does nothing, but I'll still try a few
things/dig around a bit to see if I can gain access to the style as opposed
to just duplicating it.



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
How can we turn just 3 buttons (min, max, close) of Vista into Mac OS X style. General Discussion
Word&Excel:Add-Edit Toolbar&Buttons:Autocorrect to Excel Toolbar!! Vista General
Toolbar is Windows 2000 style? Vista performance & maintenance
Toolbar buttons. Vista mail
Toolbar Buttons Change Constantly Vista mail


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