コード例 #1
0
        public MainPage(Action logOut)
        {
            InitializeComponent();

            LogOut = logOut;

            applicationBar       = new ApplicationBar(() => OpenSetsPage(), () => OpenRecommendationPage(), () => OpenProfilePage(), () => OpenAuthenticationPage());
            setsPage             = new SetsPage(() => OpenExerciseCreationPage(), () => OpenSetCreationPage());
            recommendationPage   = new RecommendationPage(() => OpenExerciseCreationPage());
            profilePage          = new ProfilePage();
            exerciseCreationPage = new ExerciseCreationPage(() => OpenConformityExercisePage(), () => OpenChoiceExercisePage());

            appBar.Content = applicationBar;
            body.Content   = setsPage;
        }
コード例 #2
0
 public RecommendationTagsVm()
 {
     RecommendedBooks     = new RecommendedBooksVm();
     RecommendedBooksPage = new RecommendationPage(RecommendedBooks);
 }