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 關注
- 190 瀏覽
添加回答
舉報