using Avalonia.Controls; using AvaloniaApplication4.AdditionalModels; using AvaloniaApplication4.Models; using AvaloniaApplication4.ViewModels; namespace AvaloniaApplication4.Views.ActionPages { public partial class MyPrograms : UserControl { public MyPrograms(User? user, ref GlobalsData globalsData,int idAction) { //временно, надо изменить DataContext = new MyProgramsViewModel(user, globalsData,idAction); InitializeComponent(); } public MyPrograms() { InitializeComponent(); } } }