AccountPage.axaml.cs 493 B

1234567891011121314151617181920
  1. using Avalonia.Controls;
  2. using AvaloniaApplication4.Models;
  3. using AvaloniaApplication4.ViewModels;
  4. namespace AvaloniaApplication4.Views
  5. {
  6. public partial class AccountPage : UserControl
  7. {
  8. public AccountPage(User user)
  9. {
  10. DataContext = new AccountPageViewModel(user);
  11. InitializeComponent();
  12. }
  13. public AccountPage()
  14. {
  15. DataContext = new AccountPageViewModel();
  16. InitializeComponent();
  17. }
  18. }
  19. }