代码改变世界

silverlight click 事件委托是 RoutedEventHandler

2008-12-01 09:46  闫妍  阅读(195)  评论(0编辑  收藏  举报

cellBtn.Click += new RoutedEventHandler(cellBtn_Click);

 

void cellBtn_Click(object sender, RoutedEventArgs e)
        {
            string neDetail = (sender as Button).Content.ToString();
            //CreateAlarmBoard(neDetail);
            HtmlWindow html = HtmlPage.Window;
            html.Alert(neDetail);
        }