public ShedulePage() { InitializeComponent(); scheduleVM = new ScheduleVM(this); DataContext = scheduleVM; Instance = this; }
public ScheduleVM(ShedulePage ownerShedule) { Instance = this; ThisData = DateTime.Now.Date; _ownershedulePage = ownerShedule; var gridShedule = _ownershedulePage.gridShedule; GridInstance = gridShedule; gridShedule.Background = new SolidColorBrush(); gridShedule.Height = 2000; gridShedule.MinWidth = 1100; gridShedule.MaxWidth = 1200; FindeShedule(gridShedule); }