WP7 LongListSelector - find a control inside a DataTemplate

I have a collection attached to a longlistselector. When a button is pressed in the application panel, I want to show a column that was previously hidden inside a longlistselector. How can I access the grid inside my data table so that I can switch column visibility?

I tried the FindName method, but it returns null for the control I want. Did I miss something?

+3
source share
1 answer

Instead of finding inside the template, how about binding the content visibility property to the property in your view model. Then all you have to do is change the property of the view model, and the content will show or hide.

+1
source

All Articles