摘要:
//创建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 阅读全文