ProfileUser.axaml.cs 315 B

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