using GalaSoft.MvvmLight; namespace OOS.Spin.ViewModle.Models { public class MenuButtonModel:ObservableObject { /// /// 按钮名称 /// private string buttonName; public string ButtonName { get { return buttonName; } set { buttonName = value; RaisePropertyChanged(() => ButtonName); } } /// /// 关联的TXT文件的路径 /// private string txtPath; public string TxtPath { get { return txtPath; } set { txtPath = value; RaisePropertyChanged(() => TxtPath); } } private bool isChecked; public bool IsChecked { get { return isChecked; } set { isChecked = value; RaisePropertyChanged(() => IsChecked); } } } }