Tag: .net 4.7.2

使用PostSharp跟踪属性更改

我想在所有前面的页面有效时启用给定的向导页面。 这是我的视图模型: [Aggregatable] [NotifyPropertyChanged] [ContentProperty(“Pages”)] public class Wizard { [Child, AggregateAllChanges] public AdvisableCollection Pages { get; } = new AdvisableCollection(); } 这是Page本身: [Aggregatable] [NotifyPropertyChanged] public class Page : INotifyPropertyChanged { [Parent] Wizard Wizard { get; set; } public string Name { get; set; } public bool Valid { get; set; } [SafeForDependencyAnalysis] public bool Enabled […]