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
400
Icon in QAT for RibbonGroup is clipped
posted

Hello,

I am using 12.2 of Infragistics WPF and am having a problem with the icon created in the QAT for a Ribbon group being clipped.  It appears to be due to the fact that the PART_RibbonGroupButton (DropDownToolToggle) created by your code has None set for the Stretch property of the image used.  In XAML, I simply set the SmallImage property of the RibbonGroup to the Image Source.  However, when this image is rendered in the QAT is is being clipped.  The other icons in the QAT for ButtonTools are not clipped because they have their Stretch properties set to Uniform.

How can I prevent the images in the QAT from being clipped when a RibbonGroup is added to the QAT?  I'm on a tight schedule so your prompt help would be appreciated.  I have attached a picture showing the issue.

Thanks

Parents
  • 400
    Suggested Answer
    Offline posted

    Looks like I was able to figure this out on my own.  I looked for the template for the Part and found it in the generic file.  It is using Style for igRibbon:DropDownToggle with Key x:Static igRibbon:RibbonGroup.QuickAccessToolbarGroupButtonStyleKey

    That Style defined in the generic templates has a setter for the Template that creates the igWindows:AutoDisabledImage with the default Streth of None.  I copied the Style in the XamRibbon.Resources and set the Stretch to Uniform to fix the problem.

    There may have been an easier way to set this property without having to copy the entire Style with the template setter but I'm just starting with WPF and don't know all the tricks.

Reply Children
No Data