WPF TreeView Edit Node

Posted by: charles.w.matherne2.ctr on 16 June 2023, 3:10 am EST

    • Post Options:
    • Link

    Posted 16 June 2023, 3:10 am EST

    I see on the ComponentOne landing page for WPF TreeView control that it natively supports editing nodes, but I cannot find any sample that supports this claim. How do I enable or use the edit node capability in WPF TreeView?

  • Posted 18 June 2023, 10:23 pm EST

    Hi Charlie,

    Thanks for reaching out to us with your query.

    We are in discussions with the developers regarding this requirement. [Internal Tracking ID: C1XAML-33933]

    We will update you on this as soon as we hear back from them.

    Thanks & Regards,

    Aastha

  • Posted 25 June 2023, 4:12 pm EST

    Hi Charlie,

    You can set the EditTemplate for C1TreeView as shown in the following code:

    <c1:C1TreeView.EditTemplate>
                <DataTemplate>
                    <TextBox Text="{Binding Header, RelativeSource={RelativeSource AncestorType=c1:C1TreeViewItem}}"/>
                </DataTemplate>
            </c1:C1TreeView.EditTemplate>

    We have attached a sample application for your reference. Please check TreeViewEditNode.zip.

    Kindly let us know if you need any further help regarding this.

    Thanks & Regards,

    Aastha

  • Posted 26 June 2023, 3:51 am EST

    Thanks! This is what we needed.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels