Posted 16 years ago
by Andy Ver Murlen
I have a bunch of xaml images that I am using as icons, which are rather large without any height and width applied to them (like 200 x 200 large). The icons are in resource dictionaries and are ImageDrawing format. I am using them for the ImageSourceLarge and ImageSourceSmall in a navigation pane.
I have a couple issues that I can't seem to solve...
1. When displayed in the large buttons, the image is displayed at 32x32, but I can't figure out a way to apply a margin to it to move it away from the button edges.
2. The image looks great in the tray at 16x16, however, in the popup buttons there is no sizing placed on them, so they are HUGE. I can't seem to figure out how to limit the size of them to 16x16. An extension of this question is why aren't they limited to 16x16 by default like the tray buttons?
How can I effectively use xaml icons (the preferred WPF way, mind you) for my image sources? It seems rather anti-wpf to have to use pngs.
Thanks
[Modified at 03/02/2009 11:33 AM]
[Modified at 03/02/2009 01:28 PM]
<DrawingImage x:Key="MyIcon" />
<NavigationPane
ImageSourceLarge="{StaticResource MyIcon}"
ImageSourceSmall="{StaticResource MyIcon}"
/>
1. When displayed in the large buttons, the image is displayed at 32x32, but I can't figure out a way to apply a margin to it to move it away from the button edges.
2. The image looks great in the tray at 16x16, however, in the popup buttons there is no sizing placed on them, so they are HUGE. I can't seem to figure out how to limit the size of them to 16x16. An extension of this question is why aren't they limited to 16x16 by default like the tray buttons?
How can I effectively use xaml icons (the preferred WPF way, mind you) for my image sources? It seems rather anti-wpf to have to use pngs.
Thanks
[Modified at 03/02/2009 11:33 AM]
[Modified at 03/02/2009 01:28 PM]