This is a migrated thread and some comments may be shown as answers.

RadTreeView binding

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ani Maks
Top achievements
Rank 1
Ani Maks asked on 04 Mar 2017, 08:14 AM
Is it possible to Bind a command while drag and drop? Instead of using code behind?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 08 Mar 2017, 10:40 AM
Hello Ani,

I am not sure that I understand your question. What kind of command you want to bind and to what element?

If you are talking about customizing of the treeview's drag/drop functionality using DragDropManager, you can attach to its events only in code-behind. If you want to make this more MVVM friendly you can implement some kind of drag/drop behavior. You can find such example in the DragDropTreeViewToControls SDK example.

I hope this information helps.

Regards,
Martin
Telerik by Progress
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.
Tags
TreeView
Asked by
Ani Maks
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or