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
1435
ButtonTool property can't find an image
posted

Hello,

I have a solution with many projects. The RibbonTabItem control is defined in project X. This control is used in project Y.

<<igRibbon:RibbonTabItem>

     <igRibbon:RibbonGroup>

             <igRibbon:ButtonTool  />

     </igRibbon:RibbonGroup>

</igRibbon:RibbonTabItem>

Each project has its own resource images stored in a folder within the project itself.

The ButtonTool LargeImage property in the Markup is "/X;component/Images/Plus.png"

I'm getting a run time error : image not found.

If I place a copy of the image in project Y, the image appears and all good. (designer error = none, run time errors = none)

If I remove the image from project X and leave it project Y, I get a designer error and no run time error.

Somehow the ButtonTool is not respecting the image path and looking for it in assembly Y even though it is instructed to look for it in the assembly X.

I have consulted the microsoft web on Pack URIs in MarkUp and tried LargeImage="pack://application:,,,/Plus.png"

Please note that MaximumSize property is set to ImageAndTextLarge..

Thank you

Parents Reply Children
No Data