Sometimes we need to extend the RadTreeView’s Drag’and’Drop abilities in order to accept external data from other applications or Windows.
In this post I will show you how to successfully drag and drop images from windows desktop / windows explorer to a RadTreeView located in a running WPF Application.
Imagine we want to make a tree that shows pictures and names of our favourite football teams and our favourite players in these teams.
How can we achieve this ?
We can first create some ViewModels: PlayerViewModel, TeamViewModel, LeagueViewModel that all inherit from BaseViewModel. The BaseViewModel will implement the INotifyPropertyChanged interface and will expose Name(string) and ImgSource(Uri) properties.
Then we will create...