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
65
Edit Style of XamGrid with Template Column
posted

I'm trying to use a XamGrid to present some data with a details section that can be displayed for each row using a TemplateColumnLayout.  I would like to provide a custom style for the expansion arrow but can't seem to find how to do it.  Can you provide a sample of how to edit the arrow for the XamGrid so I can style it to match our application?

  • 16495
    Offline posted

    Hello Christopher,

    The element you need to modify is called  'ExpansionIndicatorCellControl'. You can create a new style or edit the default. It is located on the following destination on your machine:


    C:\Program Files (x86)\Infragistics\201x.x\WPF\DefaultStyles\XamGrid

    for example:

    <Style TargetType="igPrim:ExpansionIndicatorCellControl">
        <Setter Property="Background" Value="Green" />
        <Setter Property="Opacity" Value="0.5" />
    </Style>

    From the  following forum thread, you can see how to modify the default style.

    Sincerely,
    Zhivko
    Associate Software Developer