My high-level question is: How can I change style settings on the XamDataGrid? Primarily colors.
I tried the Microsoft WPF standard technique for editing the control's template (by right clicking on it in the Visual Studio designer), but that yielded a minimal template that will not help me.
The Infragistics controls seem to prefer themes instead. Unfortunately, the help on creating a custom theme for an existing Infragistics control (found at http://help.infragistics.com/doc/WPF/2016.1/CLR4.0/?page=themeManager_Creating_New_Custom_Theme.html) includes a "giant leap," telling you to create a custom theme for the control. But of course, such a theme contains all kinds of specific keys that you need to know.
I found in the installed samples a lot of themes for a lot of the controls, but XamTreeGrid is not one of the controls included in them.
How can I get a sample theme definition for the XamTreeGrid to customize? Or if there's a quicker and easier way to change colors, I'm open to suggestions down that path as well.
Thanks,
Ken
Hello Ken,
I suggest taking a look at the Samples Browser.
You can find in on your machine (after you have installed the Infragistics Product) by opening the Start Menu and typing "Samples Browser". After you open it, you can search in it manually or by typing in the search box.
For example if you want to see XamDataGrid or XamTreeGrid themes, go to that Control (e.g. XamTreeGrid) > Styles > Theming.There are 18 themes currently supported plus a default one.
Additionally you can open the attached to this post small sample.
After you selected the colors of your theme if you want to make further color modifications you can use Infragistics Resource Washer.Besides using "Theme" property for setting a theme you can use Resource Dictionary and change the default colors. I suggest also looking in the Samples Browser for Resource Washer, you will find examples of this functionality as well as the XAML and C# Code.
If you need further information concerning this matter, please let me know.
Hi, Nick,
Themes are definitely a confusing area of the Infragistics package. There are three sources of themes, each with a different set: (A) The 18 "built in" ones you point out above, (B) the seven "official" themes installed under C:\Program Files (x86)\Infragistics\..., as sets of XAML files, and (C) the 12 "theme packs" shipped as DLLs (and may only apply to XamDataGrid).
As far as I can tell, the ResourceWasher can only work with the themes in categories B and C, because it needs to define a ResourceDictionary that refers to the theme. I am having trouble figuring out the syntax for the ReferenceDictionary.Source value to reference the B and C categories of themes. And I have no idea how to form the syntax to reference your category A themes.
The sample programs don't help because they build their own internal themes and reference those, so don't show me how to use any of the above.
Can you show me how to define the ResourceDictionary, specifically the Source value, to reference each of the three categories of themes?