AddPage.axaml.cs 417 B

12345678910111213141516171819
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Markup.Xaml;
  4. using AvaloniaApplication5.ViewModels;
  5. namespace AvaloniaApplication5;
  6. public partial class AddPage : UserControl
  7. {
  8. public AddPage()
  9. {
  10. InitializeComponent();
  11. DataContext = new AddPageViewModel();
  12. }
  13. public AddPage(int idt)
  14. {
  15. InitializeComponent();
  16. DataContext = new AddPageViewModel(idt);
  17. }
  18. }