Hi I have applied ExpressionDark theme for all other contros, how to apply ExpressionDark theme to xmlDataGrid?
Thanks!
Hello,
Just to make sure we are on the same track, are you referring to "ExpressionDark" as the theme from the Silverlight Toolkit? Which are "all the others controls" that you have applied this theme to?
If so, you will not be able to apply it to the XamDataGrid. However, we ship large variety of themes together with our products and you can choose a theme from the XamDataGrid from them. More information on DataPresenterThemes you can find here.
If you want it to resemble the ExpressionDark theme, you can create a style (or even a theme) for the XamDataGrid and all the other controls in it and make it similar in looks to the ExpressionDark theme.
Alex.
Hi Alex,
The Build-in theme Onyn is good canidate and so I just need change the cells' background and foreground. do you have a qucik example?
Thanks Alex!
I found out the reason in my xmlDataGrid, there is Theme="Onyx". so my question is how to add the similar sytles for Column headers like Onyn does in My own ExpressionDark file?Thanks!Steve
Steve,
You need to create and apply styles for all the XamDataGrid parts, like the CellValuePresenter, LabelPresenter, etc. You can see them and their default styles in the DefaultStyles folder in the Infragistics directory on your computer. You can use those default styles to create your custom ones, that resemble the ExpressionDark theme.
But I can't find any "Onyx" related theme. can you give me a quick example?
You can set the theme to the XamDataGrid to Onyx and then create styles that resemble it as I did for the CellValuePresenter.
<igDP:XamDataGrid Name="xamDataGrid1" Theme="Onyx" >
Here is a screenshot of the Onyx theme.
Alex,
What I need is the theme xml for Onyx, since when I put Theme="Onyx" this way
<igDP:XamDataGrid Name="xamDataGrid1" Theme="Onyx" > the styles I defined in ExpressionDark theme are overriden. so I need Oynx xml and I can copy it to my ExpressionDark theme file. the DefaultStyles directory you told me before does not contain Onyx theme.Thank!
Steve