This is a migrated thread and some comments may be shown as answers.

Expander is too small of a target

2 Answers 174 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 04 Aug 2010, 04:06 PM
I'm a huge fan of the RadTreeView, which we have recently incorporated into our product.  I have only found one thing that I like better about the built-in WPF TreeView, and that is the size of the hotspot associated with the expand/collapse arrow.  With the built-in WPF TreeView, you can click not only just on the arrow graphic itself, but pretty much anywhere in the whitespace around that arrow, and the associated node will collapse or expand.  With RadTreeView, I have to click precisely on the arrow graphic itself.  This is way too small of a target.  I very frequently click there trying to expand or collapse a node and miss.

When you click on the arrow to expand or collapse a node, the expander/collapser gets focus, as evidenced by the broken line drawn around it.  How about making the entire area of the focus rectangle be the hotspot for collapse/expand?

Thanks,

Eric

2 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 09 Aug 2010, 12:01 PM
Hi Eric,

Thank you for the nice words.

The arrow is actually a ToggleButton with a custom style. You can change this style by assigning the ExpanderStyle property.

I have modified it so that you will be able to click the area round the arrow to toggle it - you can have a look at the attached project.

Kind regards,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Eric Hill
Top achievements
Rank 1
answered on 11 Aug 2010, 09:38 PM
Miroslav,

Your sample works exactly as I would want.  I'll incorporate it your ExpanderStyle into our code.  Thanks very much.

Eric
Tags
TreeView
Asked by
Eric
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Eric Hill
Top achievements
Rank 1
Share this question
or