I have a xamDatagrid which allows the user to key into 3 our of 12 columns. I would like to highlight the columns they can key into by changing the background/foreground of the column heading.
I would also like whatever they key to be shown in bold.
How do I specify this in XAML ?
Hello,
The previous solution would not really work as dynamic resources are not suitable for elements which are not part of the visual tree, and FieldSettings is not.
I have attached another solution which will resolve the border issues.
If you have any question, please let me know.
Sincerely,Tihomir TonevAssociate Software DeveloperInfragistics
XDGApplyThemeAtRuntime_MOD.zip
thanks
There actually still seems to be some issues with the borders for the Office2013 theme, even though the style is picking up the rest of the properties. I will investigate this further and update you accordingly.
Hi,
When applying a theme, you apply a style to all elements of this control. By assigning a style as per my previous post, we assign the default style with some modifications.
In order to modify the style set by the theme, you will have to base the new style on the existing one.
I have attached a sample where I do the following:
I have set a XamComboEditor which sets different themes of the grid. After a theme has been applied, I get the current style of the LabelPresenter and the CellValuePresenter and create new styles based on them.
In the XAML I have the styles which are dynamic resources and I update those resources accordingly when a theme is set, so it will apply to the current style of the elements.
Please check the sample and let me know if you have any further questions.
Sincerely,Tihomir ToneAssociate Software DeveloperInfragistics
XDGApplyThemeAtRuntime.zip
I allow the user to select a theme frmo the IG themes - IG, royal Dark, Royal Light, Office 2010 Blue and Ofice 2013. Office 2010 Blue does have grid lines for my bold cells, but Ofice 2013, which I sent in the
screen shot has these blanked out