Odyssey Ribbon Button Image

Mar 25, 2010 at 2:01 PM

Hey,

I am trying to change the image in my RibbonButton in runtime as follows,

 Uri uri = new Uri("images/cut16.png", UriKind.Relative);

 ImageSource imgSource = new BitmapImage(uri);

button1.LargeImage = imgSource;

After this, no image applied to the button and the button looks empty...

Another help I need is,  I am trying to add animated GIF image to RibbonButton, but the animation is no more working..it's looks like static image. Please help on this too.. 

 

Thanks,

Suresh