Hello,
I want to show a different ExpansionIndicator based on the nesting level.
For example the Indicator on the second level should be displayed as a triangle and all others should display as the default ExpansionIndicator. I think this should be possible. But how would I do this?
Thanks in advance,
Jens
For a fixed structure I would add the custom style for the ExpansionIndicator to the Resources collection of a style that is targeted at the ExpandableFieldrRecordPresenter of the appropriate Field. E.g. in a Curomer/Orders/Order Details scenario if I wanted to provide a custom style only for the Order records I would specify it in xaml something like this (I didn't include the closing tags in the example below):
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="Orders">
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.ExpandableFieldRecordPresenterStyle>
<Style TargetType="{x:Type igDP:ExpandableFieldRecordPresenter}">
<Style.Resources>
<Style TargetType="{x:Type igWindows:ExpansionIndicator}"> ...
Hi Joe,
It is a fixed data structure.
I thought it could be possible with using a trigger that looks at the NestingDepth property and then apply another Style accordingly.Unfortunately, I don't really know how the code should loook like.
Perhaps there is another solution to my problem.
Ciao,
Hi Jens,
Is this a fixed data structure like Customer/Orders/Order Details or a more freeform structure like a tree?