In WPF, What is the best way to create toolbar buttons so that the images are properly scaled?

Posted by T.R. on Stack Overflow See other posts from Stack Overflow or by T.R.
Published on 2009-03-28T06:16:53Z Indexed on 2010/04/29 2:27 UTC
Read the original article Hit count: 486

Filed under:
|
|
|
|

Specifically, I'm looking to use the 16*16 32-bit png images included with the VS2008ImageLibrary. I've tried manually setting the Height and Width attributes of the image, adjusting margins and padding, adjusting Stretch and RenderOptions. My attempts to create toolbar buttons have all led to either Improper Scaling (blurry icons), the bottom row of pixels on the icon being truncated, or the toolbar button being improperly sized - not to mention the disappearing icons already mentioned Here. Has anyone found the best way to make standard, VisualStudio/WinForms-style toolbar buttons that display properly in WPF?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about toolbar