using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; using AvaloniaApplication5.ViewModels; namespace AvaloniaApplication5; public partial class AddPage : UserControl { public AddPage() { InitializeComponent(); DataContext = new AddPageViewModel(); } public AddPage(int idt) { InitializeComponent(); DataContext = new AddPageViewModel(idt); } }