I have dynamically created a ButtonTool, and added it onto my ribbon control, assigning an image to it as such:
btn.SharedProps.AppearancesLarge.Appearance.Image = Image.FromFile(imagePath)
What property should I set such that my image scales down to the button size?
Hello,
If you set it from AppearanceSmall it is automativally scaled:
Here is how I have set it:
buttonTool.SharedProps.AppearancesSmall.Appearance.Image =
new Bitmap(@"C:\Users\PMonov\Desktop\Win Cases\Ribbon\Ribbon\cat.jpg");
Hope this helps.
Sincerely,
Petar Monov
Developer Support Engineer,
Infragistics, Inc