Here is a picture which contains lots of icons in MSDN: http://i3.msdn.microsoft.com/areas/epx/content/images/imagesprite.png. How can I get one of those icons and use that icon in my app?
Asked
Active
Viewed 162 times
2 Answers
1
Use MS Paint, open image & crop all the icons and save it in separate folder.
Set background of every icon with transparent background color.
Now you can use all icons in your application.

Amol Bavannavar
- 2,062
- 2
- 15
- 36
-
That's right:), but is there a way to realize it in XAML? – Jason Jia Nov 14 '14 at 05:21
-
For which control you want to use icon??.. Can you provide me your XAML code?? You can visit this link for MenuItem -- http://stackoverflow.com/questions/30239/wpf-setting-a-menuitem-icon-in-code – Amol Bavannavar Nov 14 '14 at 05:22
-
I'd like to use it like this: `
-
Mark this as the answer though I didn't get what I want. Of cause this works for me. – Jason Jia Nov 14 '14 at 07:39
0
You can use like this.
<MenuItem.Icon>
<Image Stretch="Fill" Source="pack://application:,,,/Image Clipping;component/Assets/imagesprite.png">
</Image>
</MenuItem.Icon>

Amol Bavannavar
- 2,062
- 2
- 15
- 36
-
You might misunderstood what I want. I want to get various of single icons from that long picture, and then use the single icon as an image in other place. No matter as what. The key point is realize these in XAML. :) – Jason Jia Nov 14 '14 at 06:01
-