ViewModelBase.cs 326 B

123456789101112
  1. using Avalonia.Controls;
  2. using AvaloniaApplication3.Views;
  3. using ReactiveUI;
  4. namespace AvaloniaApplication3.ViewModels
  5. {
  6. public class ViewModelBase : ReactiveObject
  7. {
  8. UserControl? mainAcc;
  9. public UserControl? MainAcc { get => mainAcc; set => this.RaiseAndSetIfChanged(ref mainAcc, value); }
  10. }
  11. }