问题描述
|
我有这样的课:
public class MenuItem
{
private string _text;
public string Text
{
get { return _text; }
set { _text = value; }
}
public List<MenuItem> Children { get; private set; }
public ICommand Command { get; private set; }
private BitmapImage _icon;
public BitmapImage Icon
{
get { return _icon; }
private set { _icon = value; }
}
public MenuItem(string text,ICommand command)
{
this.Text = text;
this.Command = command;
this.Children = new List<MenuItem>();
}
public MenuItem(string text,ICommand command,BitmapImage icon)
: this(text,command)
{
this.Icon = icon;
}
}
从我的VM中,我正在创建此类的实例并发送命令(刷新),这是TreeViewItem的上下文菜单。
在Windows 2008,Windows 7上一切正常,但在Windows 2003上无法启动
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)