2 回答

TA贡献1876条经验 获得超6个赞
更改TabItem为:
public sealed class TabItem : ViewModelBase
{
private string _headerImg;
private string _headerSrt { get; set; }
private string _guid { get; set; }
private Visibility _isEnable { get; set; }
private ViewModelBase _content { get; set; }
public string HeaderImg
{
get { return _headerImg; }
set
{
_headerImg = value;
RaisePropertyChanged("HeaderImg");
}
}
// Set the properties for the other fields as above
}

TA贡献1852条经验 获得超7个赞
答案是:
public sealed class TabItem: ViewModelBase
{
public string HeaderImg { get; set; }
public string HeaderSrt { get; set; }
public string Guid { get; set; }
//public bool IsEnable { get; set; }
public ViewModelBase Content { get; set; }
private Visibility _MessageVisibilty;
public Visibility MessageVisibilty
{
get { return _MessageVisibilty; }
set {
_MessageVisibilty = value;
RaisePropertyChanged("MessageVisibilty");}
}
}
- 2 回答
- 0 关注
- 155 浏览
添加回答
举报