Preventing a WPF Expander from expanding when header is clicked
Posted
by emddudley
on Stack Overflow
See other posts from Stack Overflow
or by emddudley
Published on 2009-09-08T20:24:32Z
Indexed on
2010/06/11
21:03 UTC
Read the original article
Hit count: 577
How can I prevent a WPF Expander
from expanding when its header is clicked? I would like my Expander
to expand or collapse only when the expand button itself is clicked.
I imagine the answer has something to do with canceling a bubbled event. If possible I would like to implement the solution in XAML while avoiding retemplating the entire Expander
.
© Stack Overflow or respective owner