Note that when you set the AllowDrop property on a RadTileViewItem this will prevent the drop only if an element is dropped inside the item. In this case the dragged item is dropped on the RadTileView itself and this is why the AllowDrop property doesn't work.
In order to prevent the drop on a particular item you can handle the PreviewTilePositionChanged
event of the RadTileView.
<telerik:RadTileView PreviewTilePositionChanged="RadTileView_PreviewTilePositionChanged" />
sender, Telerik.Windows.RadRoutedEventArgs e)
RadTileView tileView = (RadTileView)sender;
var container = e.OriginalSource
var item = tileView.ItemContainerGenerator.ItemFromContainer(container)
You can also take a look at the Pinned Tiles demo
. Note that this link leads to our Silverlight demos which share code with the WPF ones. If you prefer you can download the demos for WPF
and find this demo there.
In addition I prepared a sample project which demonstrates this approach. Please give it a try and let me know if it helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.