wpf TextBox 自定义菜单

yichen_wp 13 0 CS 2020-07-27 13:07:50

右键菜单 ContextMenu cont = new ContextMenu(); cont.Items.Add(new MenuItem() { Header="删除"}); cont.Items.Add(new MenuItem() { Header = "添加" }); textBox1.ContextMenu = cont; for (int i = 0; i < cont.Items.Count; i++) { MenuItem i

用户评论
请输入评论内容
评分:
暂无评论