StartPage.axaml.cs 350 B

123456789101112131415
  1. using Avalonia.Controls;
  2. using AvaloniaApplication4.Models;
  3. using AvaloniaApplication4.ViewModels;
  4. namespace AvaloniaApplication4.Views
  5. {
  6. public partial class StartPage : UserControl
  7. {
  8. public StartPage(User? user)
  9. {
  10. DataContext = new StartPageViewModel(user);
  11. InitializeComponent();
  12. }
  13. }
  14. }