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));
};
C# WPF MemuItem 设置background,icon
最新推荐文章于 2024-09-04 22:03:11 发布