开发者

Event Handler Windows Phone 7

开发者 https://www.devze.com 2023-02-02 09:52 出处:网络
I\'m using http://babaandthepigman.wordpress.com/2010/09/22/wp7-looping-selector/ as a timer selector

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!
}
0

精彩评论

暂无评论...
验证码 换一张
取 消