开发者

Can I toggle expandability of a expander?

开发者 https://www.devze.com 2023-01-05 01:42 出处:网络
Is there any property or state I can set on a expander object that makes it unexpandable but still can be selected?

Is there any property or state I can set on a expander object that makes it unexpandable but still can be selected?

I'm thinking for example of the last Child in a TreeView wher开发者_StackOverflow社区e I don't wan't the Expander to have an expander button. But other uses could be if someone doesn't have access to more then the header or something along that line.


The only way I know would be to create custom control template for expander, remove expander button from it and disable expanding.

See WPF Expander: Reversing the icon direction while keeping the content location (ExpandDirection) the same on how to create custom template for expander.

0

精彩评论

暂无评论...
验证码 换一张
取 消