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
155
Styling the XamDataGrid
posted

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

Parents
No Data
Reply
  • 2490
    Offline posted

    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.

    XamDataGrid_Themes.zip
Children