我正在尝试创建一个像Windows 7一样的上下文菜单。 在哪里,我可以拥有一个上下文...对不起,我是这个环境的新手所以请耐心等待..提前感谢。
这是我的代码..
private void menuContext()
{
contextMenu = new RadContextMenu();
RadMenuItem EditView = new RadMenuItem("Edit/View");
contextMenu.Items.Add(EditView);
EditView.Click += EditView_Click;
RadMenuItem Deactivate = new RadMenuItem("Deactivate");
contextMenu.Items.Add(Deactivate);
Deactivate.Click += Deactivate_Click;
RadMenuSeparatorItem separator = new RadMenuSeparatorItem();
contextMenu.Items.Add(separator);
RadMenuItem CreatePurchaseOrder = new RadMenuItem("Create Purchase Order");
contextMenu.Items.Add(CreatePurchaseOrder);
CreatePurchaseOrder.Click += CreatePurchaseOrder_Click;
RadMenuItem CreateItemReceipt = new RadMenuItem("Create Item Receipt");
contextMenu.Items.Add(CreateItemReceipt);
CreateItemReceipt.Click += CreateItemReceipt_Click;
RadMenuItem CreateWithdrawal = new RadMenuItem("Create Withdrawal");
contextMenu.Items.Add(CreateWithdrawal);
CreateWithdrawal.Click += CreateWithdrawal_Click;
RadMenuItem CreateStockTransfer = new RadMenuItem("Create Stock Transfer");
contextMenu.Items.Add(CreateStockTransfer);
CreateStockTransfer.Click += CreateStockTransfer_Click;
RadMenuItem CreateStockAdjustment = new RadMenuItem("Create Stock Adjustment");
contextMenu.Items.Add(CreateStockAdjustment);
CreateStockAdjustment.Click += CreateStockAdjustment_Click;
RadMenuItem CreateStockConversion = new RadMenuItem("Create Stock Conversion");
contextMenu.Items.Add(CreateStockConversion);
CreateStockConversion.Click += CreateStockConversion_Click;
}
这里有一张照片......我想要的是有一些菜单。