C# WPF MemuItem 设置background,icon

来源:互联网 发布:斗地主残局软件 编辑:程序博客网 时间:2024/06/05 00:24

MenuItem mi = new MenuItem();mi.Background = System.Windows.Media.Brushes.White;mi.Icon = new Image(){source = new BitmapImage(new Uri("Images/text.png"),UriKind.RelativeOrAbsolute));};


0 0
原创粉丝点击