using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; using TeacheresAndCourses.ViewModels; namespace TeacheresAndCourses; public partial class AddTeacher : UserControl { public AddTeacher() { InitializeComponent(); DataContext = new AddTeacherViewModel(); } public AddTeacher(int teacherId) { InitializeComponent(); DataContext = new AddTeacherViewModel(teacherId); } }