예제 #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);
        }
예제 #2
0
파일: LayerStack.cs 프로젝트: aragoubi/Nine
 internal void Init(Lesson lessonViewModel)
 {
     this.lessonViewModel = lessonViewModel;
     if (holderModel.GetType() == typeof (GlobalNotesHolder))
         SetLayers(0);
     else
         SetLayers();
 }