using VPet.Solution.Models.SettingEditor; namespace VPet.Solution.ViewModels.SettingEditor; public class GraphicsSettingPageVM : ObservableClass { private GraphicsSettingModel _graphicsSetting; public GraphicsSettingModel GraphicsSetting { get => _graphicsSetting; set => SetProperty(ref _graphicsSetting, value); } public GraphicsSettingPageVM() { SettingWindowVM.Current.PropertyChangedX += Current_PropertyChangedX; } private void Current_PropertyChangedX(SettingWindowVM sender, PropertyChangedXEventArgs e) { if ( e.PropertyName == nameof(SettingWindowVM.CurrentSetting) && sender.CurrentSetting is not null ) { GraphicsSetting = sender.CurrentSetting.GraphicsSetting; } } }