Posted 19 June 2023, 4:54 am EST
Hi Jacob,
>The documentation mentions that you can set the DragDropArrowMarker and DragDropLineMarker properties, but both of these properties are readonly.
We apologize for any confusion caused. It appears that there was a mistake in the documentation. The DragDropArrowMarker and DragDropLineMarker properties mentioned in the documentation are actually read-only, meaning they cannot be directly modified or set.
However, you can achieve the desired customization of the DragDropArrowMarker and DragDropLineMarker by handling the Loaded event of the C1TreeView control. In the event handler, you can access the elements of the DragDropArrowMarker and DragDropLineMarker and modify their properties accordingly.
Here’s an example of how you can accomplish this:
treeView.Loaded += (s, e) =>
{
var tree = s as C1TreeView;
var arrow = (tree.DragDropArrowMarker as Grid).Children[0] as Path;
arrow.Fill = Brushes.Green;
var line = (tree.DragDropLineMarker as Grid).Children;
foreach (Path item in line)
{
if (item != null)
{
item.Fill = Brushes.Red;
item.Stroke = Brushes.Red;
}
}
};
Kindly refer to the attached sample for full implementation. See TreeViewDragDrop.zip
Thanks & Regards,
Aastha