Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1585
Remove Black Dotted Rectangle
posted

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....

Parents
No Data
Reply
  • 6912
    Verified Answer
    posted

    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.

Children