Beispiel #1
0
        public MainPage()
        {
            InitializeComponent();
            layerStack = LayerStack.DataContext as LayerStack;
            lessonPage = LessonPage.DataContext as Lesson;
            appBar = AppBar.DataContext as AppBarState;

            lessonPage.SetComponents(LessonPage, LessonSidebar.ThumbsContainer);
            layerStack.Viewport.SetComponents(LessonContainer, LessonContent, DrawingAreaBound, RadialMenu);
        }
Beispiel #2
0
 internal void Init(Lesson lessonViewModel)
 {
     this.lessonViewModel = lessonViewModel;
     if (holderModel.GetType() == typeof (GlobalNotesHolder))
         SetLayers(0);
     else
         SetLayers();
 }