MainWindowViewModel.cs 424 B

123456789101112131415161718
  1. using Acosta.Views;
  2. using Avalonia.Controls;
  3. using ReactiveUI;
  4. namespace Acosta.ViewModels
  5. {
  6. public class MainWindowViewModel : ViewModelBase
  7. {
  8. public UserControl UC { get => uc; set => this.RaiseAndSetIfChanged(ref uc, value); }
  9. private UserControl uc = new AuthorizationView();
  10. public void LoadPersonalAccount()
  11. {
  12. UC = new PersonalAccountView();
  13. }
  14. }
  15. }