Reputation: 2586
I'm trying to use ExpanderViewer with Binding, I followed this tutorial
now I need an event that fires on taping on one of the ExpanderViewer Items. is that possible?
Upvotes: 0
Views: 272
Reputation: 2127
I'm using this: <Controls:ExpanderView Expanded="ExpanderView_Expanded" />
And for every item separately you have to add the events in the datatemplate, for example:
<phone:PhoneApplicationPage.Resources>
<DataTemplate x:Key="CustomHeaderTemplate">
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"/>
<TextBlock Text="{Binding Name}" FontSize="{StaticResource PhoneFontSizeExtraLarge}" FontFamily="{StaticResource PhoneFontFamilySemiLight}"/>
</DataTemplate>
</phone:PhoneApplicationPage.Resources>
Upvotes: 1