摘要: //创建ListBoxItemListBoxItem li = new ListBoxItem();li.Content = "test";//创建ContextMenu ContextMenu menu = new ContextMenu(); MenuItem menuItem1 = new MenuItem(); menuItem1.Header = "This is Menu Item 1"; menuItem1.Click += new RoutedEventHandler(MenuItem_Click); menu.Items.Add(men 阅读全文
posted @ 2011-12-19 11:33 xiaofoyuan 阅读(464) 评论(0) 推荐(0) 编辑