I'm using http://babaandthepigman.wordpress.com/2010/09/22/wp7-looping-selector/ as a timer selector
It has an even handler for example
hours.DataSource.SelectionChanged += //not sure what to put here
开发者_开发知识库
I'm not sure what to put after the += and I don't know where the whole code block should be placed in my WP7 app?
I want a button to be enabled when the selector is changed.
Something like this:
hours.DataSource.SelectionChanged +=
new EventHandler<SelectionChangedEventArgs>(DataSource_SelectionChanged);
Then create the method like this:
void DataSource_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
// Your code here!
}
精彩评论