1
Vote

Expander View items are HitTestVisible when collapsed

description

Environment:
  1. A single ExpanderView on a page with nothing below it in the VisualTree (in fact, just a single page with a single ExpanderView on it and nothing else)
  2. ExpanderView has at least 2 items in it that each have a click/tap event attached.
  3. ExpanderView is IsExpanded=false (meaning it is initialized as this value, which is the default)
In this scenario, tapping/clicking in the empty area directly below the collapsed ExpanderView will trigger one of the items in the ExpanderView that has a click event.

This isn't expected behavior.

I'm thinking that instead of Opacity=0 or 1, should the control use Visibility = Collapsed or Visible for the ItemsCanvas instead?

comments