public FreeNotesPage() { InitializeComponent(); LessonPage = (Catalog.Instance.GetPage("MainPage") as MainPage).LessonPage.DataContext as Lesson; LayerStackDC = new LayerStack(Data.Instance.Lesson.GlobalNotes, Data.Instance.Lesson); LayerStackDC.Init(LessonPage); LayerStackDC.Viewport.SetComponents(LessonContainer, LessonContent, DrawingAreaBound, RadialMenu); appBar = AppBar.DataContext as AppBarState; DataContext = this; }
public QuestionsPage() { InitializeComponent(); var LessonModel = Data.Instance.Lesson; LayerStackDC = new LayerStack( LessonModel.Exercises, LessonModel); LessonPage = new Exercises(LayerStackDC, (int)DrawingAreaBound.Width, (int)DrawingAreaBound.Height); LessonPage.SetComponents(null, LessonSidebar.ThumbsContainer); LayerStackDC.Init(LessonPage); LayerStackDC.Viewport.SetComponents(LessonContainer, LessonContent, DrawingAreaBound, RadialMenu); appBar = AppBar.DataContext as AppBarState; DataContext = this; }