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
2800
xamDataTree: Hide Sub Nodes Keys
posted

Hello,

I want to use the xamDataTree to show different ItemTemplates based on the type of node.

Unfortunatelly, when I use different NodeLayouts, for every object type, the Key name of that NodeLayout is displayed as leave. Is it possible to hide emtpy node collections and the leave itself?

<ig:XamDataTree NodeLineVisibility="Visible" ItemsSource="{Binding Devices}">
                                    <ig:XamDataTree.GlobalNodeLayouts>
                                        <ig:NodeLayout Key="main" TargetTypeName="DeviceSettingTreeItem">
                                            <ig:NodeLayout.ItemTemplate>
                                                <DataTemplate>
                                                    <Label Content="{Binding Data.DisplayName}"/>
                                                </DataTemplate>
                                            </ig:NodeLayout.ItemTemplate>
                                        </ig:NodeLayout>

                                        <ig:NodeLayout Key="subSiemensS7" TargetTypeName="DeviceSiemensS7SettingItem" ItemTemplate="{StaticResource SiemensS7SettingTemplate}"/>
                                        <ig:NodeLayout Key="subAllenBradley" TargetTypeName="DeviceAllenBradleySettingItem" ItemTemplate="{StaticResource AllenBradleySettingTemplate}"/>
                                        
                                    </ig:XamDataTree.GlobalNodeLayouts>
                                </ig:XamDataTree>