StartWindowViewModel.cs 699 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Avalonia.Controls;
  5. using AvaloniaApplication3.Models;
  6. using AvaloniaApplication3.Views;
  7. using ReactiveUI;
  8. namespace AvaloniaApplication3.ViewModels
  9. {
  10. public class StartWindowViewModel : ViewModelBase
  11. {
  12. //UserControl mainUserControl;
  13. //public UserControl MainUserControl { get => mainUserControl; set => this.RaiseAndSetIfChanged(ref mainUserControl, value); }
  14. User currentUser;
  15. public StartWindowViewModel(User currentUser)
  16. {
  17. this.currentUser = currentUser;
  18. MainAcc = new PersonalAccountPage(this.currentUser);
  19. //MainUserControl = MainAcc;
  20. }
  21. }
  22. }