Reputation: 539
I have create WP8 app. I have created longlistselector. I put button in longlistselector. I have write button event. It is working fine. But i want to write selection event also on that control. Here i have problem. First,when click button inside listselector, selection event is called.
Two column have data, another column have button. When click the data, no problem even if the selection event is called. When click the button, only button event need to called not selection event.
If button is part of list, how will avoid SelectionChanged event only on button.
Any one assist me to solve this problem.
Thanks in advance.
Upvotes: 0
Views: 118
Reputation: 1560
In this cae try adding LongListSelector Tap/SelectionChanges event dynamically.means in OnNavigatedTo just add it and in Button Tap.Click remove it.Thats it.
Suppose it is Tap of list then do like this in button click:
list.Tap -= list_Tap;//list_Tap is Tap event handler
Hope that helped.
Upvotes: 1