UserPage.axaml.cs 299 B

123456789101112131415
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Markup.Xaml;
  4. using AvaloniaHomeTry.ViewModels;
  5. namespace AvaloniaHomeTry;
  6. public partial class UserPage : UserControl
  7. {
  8. public UserPage(int id)
  9. {
  10. InitializeComponent();
  11. DataContext = new UserPageViewModel(id);
  12. }
  13. }