MainWindowViewModel.cs 330 B

12345678910111213
  1. using Avalonia.Controls;
  2. using AvaloniaApplication2.Views;
  3. using ReactiveUI;
  4. namespace AvaloniaApplication2.ViewModels
  5. {
  6. public class MainWindowViewModel : ViewModelBase
  7. {
  8. UserControl us = new UserControl1();
  9. public UserControl US { get => us; set => this.RaiseAndSetIfChanged(ref us,value); }
  10. }
  11. }