using System.Windows.Media; namespace MaintainModule.Pops; internal partial class AxisFloatViewModel : ObservableObject, IPopAware { public ImageSource? ImageSource { get; set; } public string? Title { get; set; } public Action? RequestClose { get; set; } [ObservableProperty] private AxisSetting? _DataSource; public bool CanClose() { return true; } public void OnClose() { } public void OnPop(object? state) { if (state is not AxisSetting settings) return; this.DataSource = settings; this.Title = settings.Title; } }