I m facing problem in changing size of button tools placed inside ribbon tab Item. It is not allowing me to go beyond large Image size which is 32x32. I want to use 50x50 for my large screen.
Also when i am using Quick access toolbar, these icons are becoming very small. I am not able to increase the size of icons.
Any help would be appreciated.
Hello Jain,
The default size of images of a ButtonTool on a RibbonGroup are 16px and 32px(Small image & Large image). Setting the SizingMode to ImageOnly or ImageAndTextNormal will use the small image, and setting it to ImageAndTextLarge will use the Large image.
If you would like to use sizes other than our defaults, then you will need to re-template the elements. You can use the default styles we ship with the product (located in the DefaultStyles directory) as the starting point for your custom templates.
Please see attached a sample project, setting the size of the LargeImage of a ButtonTool to 60x60px.
Regarding the size of QAT images, I assume you mean the 16px images? As the images mirror the settings of the RibbonGroup, setting them to large should fix the problem.
If that's not the case, please rework my sample, so I can inspect it further.
Should you have any other questions, please let me know.
Sincerely,Tihomir TonevAssociate Software Developer
XamRibbonButtonSizing.zip
Hello Tonev,
Thanks for the quick response.
This example worked for me for changing button Tool size to 60x60.
For Quick Access Toolbar, I am not willing to place a ribbon group. Instead I directly want to place tool button in QAT. Like-
<igRibbon:QatPlaceholderTool TargetId="SaveTool">
I have defined save Tool as
<igRibbon:ButtonTool id= "SaveTool" igRibbon:RibbonGroip.MaximizaSize="ImageAndTextLarge" LargeImage=Image.png" />
If I place ButtonTool style then also it is not increasing QAT tools size.
Your help will be appreciated.
Hello,
Tools placed directly on the QAT will try to use the SmallImage property first. If that is not set, then they will take the Large image.The size for the images of the tools in the QAT is 16x16 as required in the ms office requirements.
If you would like to change the size of the image, this can also be done using the default templates, however re-sizing the images in the QAT will not resize the QAT itself, so you will not only have to resize the QAT, but all elements affected by it. Otherwise the image will just cut as the space will not be enough.
Since this is a very complex implementation, you may also consider posting it as a new product idea on our website.
Sincerely, Tihomir Tonev Associate Software Developer