When I select an item thats already selected or I click inside the tree control not on any item I get that
rectangle that is a black dotted line.
How can I remove it all together??
I looked into the generic.xaml style but I couldnt find the dotted line. I found the active border, hover borders but not this dotted line....
hi,
can i have a sample on how to do this?
thx
@cindylaramie: You can remove the dotted line around the nodes of the XamDataTree by changing the template of the ActiveNoteIndicator and the XamDataTreeNodeControl.
The template of the ActiveNodeIndicator contains a Rectangle with StrokeDashArray="1 5". You can change the StrokeDashArray or remove it if you want the line to be solid.
If you need further support please open a new thread in the XamDataTree forum.
Regards,
I am looking for the same solution but for the Silverlight 4 XamDataTree - I too can not figure out how to get rid of the dashed lines around the node/rectangle. What do I need to change in it's style?
Hi,
You have to retamplete the XamTreeItem and change the Stroke of the "FocusRectangle" element.
Add the XamTreeItem style to the resources (make sure to add the brushes and the XamTreeLeftMarginIndentationValueConverter, too) and set it as StaticResource to the ItemContainerStyle of the XamTree.
Tell me if need further assistance.