using Avalonia.Controls; using AvaloniaApplication4.AdditionalModels; using AvaloniaApplication4.Models; using AvaloniaApplication4.ViewModels; namespace AvaloniaApplication4.Views.ActionPages { public partial class AllPrograms : UserControl { public AllPrograms(User? user, ref GlobalsData globalsData) { InitializeComponent(); DataContext = new AllProgramsViewModel(globalsData, user); } } }