Hi... I am using ur xamribbon and its good but i should add background image as water mark image in xamribbon.is it possible to add.Plz send a sample application on this which will help me a lot.Water marker should streach from left to right.if possible can we add gradient to that xamribbon (i.e. from light to dark color).
Hello shankarnag,
I have been looking into your requirements and I can suggest you change the Background color of the XamTabitem by overriding its default style. By using the approach described in the following forum thread you can assign to the Background property of the border named “innerContentBorder” any kind of brush including image:
http://forums.infragistics.com/forums/p/57092/292810.aspx
For additional reference please check the attached sample.
If you have any additional questions on this matter, please feel free to ask.
Hi.... thanks for ur response.It is working fine when i didnt specify any theme for xamribbon.But i am using 4 themes which i can change in xamribbon.ApplicationMenu.I am sending the Application in which i haved theme=IgTheme and i haved added image instead of color.It will work fine if i remove theme in xamribbon but it will not work if i add theme in xamribbon.
The issue that you are referring may be caused by one of the common style issues that are discussed in the following blog:
http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/12/09/common-style-issues-when-using-the-theme-property.aspx
In order to apply the style even when you apply theme on the control you can just specify the BasedOn property of the style to the Style for the Theme you are using.
If you need any further assistance on this, please let me know.
hi... yes wat u told is right if i am using 1 style.but in my project i am using 4 styles.how can i do based on?How to solve my issue.i am sending an application in which plz click on application menu and u will find the label.Currently i have disabled the function but it is working.how to retain background image after changing the theme?
Hi... thanks a lot... its working fine.....
Hello shankarnag ,
I slightly modify your sample in order to include the predefined style inside the XamRibbon’s resource section. This way it have higher priority than the theme and it is getting applied even when you change the themes. For additional reference you can check the attached sample.
Please let me know if you have any further questions on this.