Reputation: 63
I'm using WP7 'Mango' SDK and Phone Toolkit for my app. I have a control, which contains ExpanderView. I'm using next template for ExpanderView's header:
<toolkit:ExpanderView.HeaderTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}"/>
<Button Tap="ShowMoreTap">
<Button.Template>
<ControlTemplate>
<TextBlock Text="show more..."/>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
</DataTemplate>
</toolkit:ExpanderView.HeaderTemplate>
The code behind:
private void ShowMoreTap(object sender, System.Windows.Input.GestureEventArgs e)
{
// Some logic here
}
I don't want to expand/collapse the ExpanderView when user taps on the button, I need some specific actions there. The problem is that ShowMoreTap event is never fired.
Any ideas?
Thanks
Upvotes: 0
Views: 805
Reputation: 50672
According to the source code the Tap is handled by the ExpanderView to cause the expansion (or collapse)
Apparently this event then never bubbles up; it is not a routed event.
I see two options:
Upvotes: 2