Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

How does ToolBar change the style of Buttons?

Closed Thread
 
Thread Tools Display Modes
Old 02-20-2007   #1 (permalink)
Keith Patrick
Guest


 

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?


Old 02-20-2007   #2 (permalink)
Keith Patrick
Guest


 

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.



Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word&Excel:Add-Edit Toolbar&Buttons:Autocorrect to Excel Toolbar!! Wayne4Js Vista General 5 05-12-2008 12:41 AM
Toolbar is Windows 2000 style? Davtec Vista performance & maintenance 1 05-20-2007 10:22 AM
Toolbar buttons. Keith Vista mail 2 04-24-2007 12:22 PM
similar buttons on the toolbar - is Vista like XP =?Utf-8?B?ZGluMDI=?= Vista General 0 09-21-2006 09:56 AM
Toolbar Buttons Change Constantly CH Vista mail 6 07-18-2006 08:01 PM








Vistax64.com 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 2005-2008

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 47 48 49 50