0

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?

Jason Jia
  • 31
  • 5

2 Answers2

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
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
  • Sorry. The key point is how to get the various single icons :) – Jason Jia Nov 14 '14 at 06:09