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
125
XamDataTree using double click to edit
posted

Dear,

There seems to be an issue with the XamDataTree using an EditorTemplate for the NodeLayout and trying to enter the node's edit mode by a mouse double click .

When you try the attached code, you will notice that if IsMouseActionEditingEnabled is set to SingleClick, everything works fine (i.e you click on a node to edit). However, when the IsMouseActionEditingEnabled is set to doubleclick you never manage to edit the node....

Can you please check what is going wrong here?

Thanks.

 

    <ig:XamDataTree x:Name="TaxonomyTree" ItemsSource="{Binding People}" NodeLineVisibility="Visible" Grid.Row="0" >

            <ig:XamDataTree.GlobalNodeLayouts>
                <ig:NodeLayout Key="VehicleNodeLayout"
                               TargetTypeName="Vehicle">

                    <ig:NodeLayout.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <Label Content="NOooooooooooo"/>
                            </StackPanel>
                        </DataTemplate>
                    </ig:NodeLayout.ItemTemplate>

                    <ig:NodeLayout.EditingSettings>
                        <ig:TreeEditingSettingsOverride AllowEditing="True" IsMouseActionEditingEnabled="DoubleClick" />
                    </ig:NodeLayout.EditingSettings>

                    <ig:NodeLayout.EditorTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <Label Content="YESssssssssss"/>
                            </StackPanel>
                        </DataTemplate>
                    </ig:NodeLayout.EditorTemplate>
                   
                </ig:NodeLayout>
                </ig:XamDataTree.GlobalNodeLayouts>

        </ig:XamDataTree>

Parents Reply Children