I find myself changing the "IGRibbon:RibbonGroup.MaximumSize" on the ButtonTool quite a lot while working on layout. But I haven't found how to set it in the Properties Window. Is this possible, or do we just need to manually type in the XAML each time we want to change this?
\\
Hello Jaimi,
Thank you for your post. I have been looking into the question that you are having and if I understand correctly, you wish to set the MaximumSize of all ButtonTools in the XamRibbon, without setting that property for each ButtonTool individually. If this is correct, I can suggest creating a style for the ButtonTool and add it to the Resources of the XamRibbon. In the Style you can add a Setter for the RibbonGroup.MaximumSize attached property and set it for all ButtonTools in the XamRibbon. I have created a sample application for you, that demonstrates how you can implement this approach.
Please let me know if this is what you are looking for, or I have misunderstood you in any way.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi -
That's a cool project, and will be helpful later, so thank you for it. But what I am asking is much simpler.
I simply want to select a button, and set the properties in the "Properties Window". When you create a button, you can set the images, but you cannot tell the button to display the image without setting the "MaximumSize" property. This property is not available in the "Properties Window". So instead, you have to type in the XAML for it on every button (I don't want them to be all the same size, though - I want to individually select each button and decide whether it has the image or not).
This seems counter-intuitive, and I was assuming that I have missed the property somewhere in the inspector. My question is simply: "How do I set the property for MaximumSize in the inspector". Thanks.