ViewModels/NotifyData.cs

(完整代码) 842B

using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace XStart2._0.ViewModels {
    class NotifyData : INotifyPropertyChanged {
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

        private string title;
        public string Title { get => title; set { title = value; OnPropertyChanged("Title"); } }

        private string background;
        public string Background { get => background; set { background = value; OnPropertyChanged("Background"); } }

        private string content;
        public string Content { get => content; set { content = value; OnPropertyChanged("Content"); } }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。