or
RadDragAndDropManager.Options.Effects = ConvertToWpfEffects(effects);var l_cue = RadDragAndDropManager.Options.DragCue as Telerik.Windows.Controls.TreeView.TreeViewDragCue;if (l_cue != null){ switch (effects) { case DragAndDropEffects.Copy: l_cue.DragActionContent = "Copy To"; l_cue.IsDropPossible = true; break; case DragAndDropEffects.Move: l_cue.DragActionContent = "Link With"; l_cue.IsDropPossible = true; break; default: l_cue.IsDropPossible = false; break; }}private void OnDragOver(object sender, System.Windows.Forms.DragEventArgs e){ var options = DragDropPayloadManager.GetDataFromObject(e.Data, TreeViewDragDropOptions.Key) as TreeViewDragDropOptions; if (options != null) { var l_dragVisual = options.DragVisual as TreeViewDragVisual; switch (effects) { case DragAndDropEffects.None: options.DropAction = DropAction.None; if (l_dragVisual != null) { l_dragVisual.IsDropPossible = false; options.UpdateDragVisual(); } break; case DragAndDropEffects.Copy: options.DropAction = DropAction.Delete; if (l_dragVisual != null) { l_dragVisual.IsDropPossible = true; options.UpdateDragVisual(); l_dragVisual.DropActionText = "Copy To"; } break; case DragAndDropEffects.Move: options.DropAction = DropAction.Delete; if (l_dragVisual != null) { l_dragVisual.IsDropPossible = true; options.UpdateDragVisual(); l_dragVisual.DropActionText = "Link With"; } break; } }}
<code style="color: #000;"><</code><code style="color: #069;font-weight: bold;">Telerik:GridViewDataColumn<br></code><code style="color: #000;">TextAlignment="Left"<br></code><code style="color: #000;">TextTrimming="CharacterEllipsis"<br></code><code style="color: #000;">DisplayIndex="{Binding CreatedTimestampColumnIndex}"<br></code><code><font color="#000000">IsReadOnly="True"><br></font></code><code style="color: #008200;"><!-- And more code that sets the header and the CellTemplate with binding etc... --><br></code><code style="color: #000;"></</code><code style="color: #069;font-weight: bold;">Telerik:GridViewDataColumn</code><code style="color: #000;">></code> public int CreatedTimestampColumnIndex<br> {<br> get<br> {<br> return createdTimestampColumnIndex;<br> }<br> <br> set<br> {<br> createdTimestampColumnIndex = value;<br> OnPropertyChanged("CreatedTimestampColumnIndex");<br> }<br> }<t:RadNumericUpDown Value="{Binding Number, UpdateSourceTrigger=PropertyChanged}" IsEditable="True" />