»
S
I
D
E
B
A
R
«
Setting MenuItem.Icon in WPF
April 19th, 2010 by admin

If you have an images folder with png image in it and you would like to set a MenuItem’s icon to that png. Here is how you can write in procedural code:

menuItem.Icon = new BitmapImage(new Uri("images/sample.png", UriKind.Relative));
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay



Similar Posts:
Leave a Reply

Powered by WP Hashcash