Thank you for your interest in RadTreeView control.
To start the editing process you can set the IsInEditMode
property of the RadTreeViewItem to true. How can you do this? You can create bool property in your model IsInEditModeProperty
. Then in a custom style with target type set to RadTreeViewItem you can bind the IsInEditMode
to the from the model. To apply the custom style you can set it to the ItemContainerStyle property of the RadTreeView. Keep in mind that in order to apply the changes you can set custom data template to the ItemEditTemplate
property. The IsInEditMode
property is designed to open/close the editing mode only. In addition, you can take a look at the How to Edit An Item
help article in our documentation.
I have created sample project which demonstrates this approach. In the attached project you can see that when the button is pressed an item is added to the tree in edit mode.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow
you to write beautiful native mobile apps using a single shared C# codebase.