You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the original design they switch the "expand" toggle off when the item has no sub-items, which is the expected behaviour. The good news is the Avalonia "ItemsControl" that TreeViewItem inherits from gives us an "empty" pseudoclass, so replacing those lines thus:
In Controls.TreeView.axaml lines 157-159 are commented out:
In the original design they switch the "expand" toggle off when the item has no sub-items, which is the expected behaviour. The good news is the Avalonia "ItemsControl" that TreeViewItem inherits from gives us an "empty" pseudoclass, so replacing those lines thus:
...restores the behaviour. I think I'd also argue that the toggle should have the active foregound colour, so line 32:
... should actually be:
...but that's based on my perceived ease of use rather than the specifics of the design language.
The text was updated successfully, but these errors were encountered: