Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
How do you set MaximumSize on ButtonTool in Properties Window?
posted

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?

Parents
No Data
Reply
  • 30945
    Offline posted

    \\

    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

    ButtoSizeThroughStyle.zip
Children