When I stop to select the node, is shaded.
This time, I do the dragdrop from the ListView to Treeview.
In return the default backcolor of treeview node.
RadTreeNode _previousNode = null;
private void tvwExplorer_DragOver(object sender, DragEventArgs e)
{
if (this._previousNode != null)
{
this._previousNode.BackColor = SystemColors.HighlightText;
this._previousNode.ForeColor = SystemColors.ControlText;
}
Point pt = ((RadTreeView)sender).PointToClient(new Point(e.X, e.Y));
RadTreeNode tn = this.tvwExplorer.GetNodeAt(pt);
if (tn != null)
{
tn.BackColor = SystemColors.Highlight;
tn.ForeColor = SystemColors.HighlightText;
}
this._previousNode = tn;
}
This time, I do the dragdrop from the ListView to Treeview.
In return the default backcolor of treeview node.
RadTreeNode _previousNode = null;
private void tvwExplorer_DragOver(object sender, DragEventArgs e)
{
if (this._previousNode != null)
{
this._previousNode.BackColor = SystemColors.HighlightText;
this._previousNode.ForeColor = SystemColors.ControlText;
}
Point pt = ((RadTreeView)sender).PointToClient(new Point(e.X, e.Y));
RadTreeNode tn = this.tvwExplorer.GetNodeAt(pt);
if (tn != null)
{
tn.BackColor = SystemColors.Highlight;
tn.ForeColor = SystemColors.HighlightText;
}
this._previousNode = tn;
}