Ejemplo n.º 1
0
        /// <summary>
        ///     Handler for the CommandsRequested event. Add custom SettingsCommands here.
        /// </summary>
        /// <param name="settingsPane">The settings pane.</param>
        /// <param name="e">Event data that includes a vector of commands (ApplicationCommands)</param>
        private void OnCommandsRequested(SettingsPane settingsPane, SettingsPaneCommandsRequestedEventArgs e)
        {
            if (!_forumEntity.IsBookmarks)
            {
                return;
            }
            var bookmarksCommand = new SettingsCommand("bookmarkSettings", "Bookmarks",
                                                       handler =>
            {
                var up = new BookmarkSettingsFlyout();
                up.Show();
            });

            e.Request.ApplicationCommands.Add(bookmarksCommand);
        }
Ejemplo n.º 2
0
 private void BookmarkSettings_Click(object sender, RoutedEventArgs e)
 {
     var up = new BookmarkSettingsFlyout();
     up.Show();
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Handler for the CommandsRequested event. Add custom SettingsCommands here.
 /// </summary>
 /// <param name="settingsPane">The settings pane.</param>
 /// <param name="e">Event data that includes a vector of commands (ApplicationCommands)</param>
 private void OnCommandsRequested(SettingsPane settingsPane, SettingsPaneCommandsRequestedEventArgs e)
 {
     if (!_forumEntity.IsBookmarks) return;
     var bookmarksCommand = new SettingsCommand("bookmarkSettings", "Bookmarks",
         handler =>
         {
             var up = new BookmarkSettingsFlyout();
             up.Show();
         });
     e.Request.ApplicationCommands.Add(bookmarksCommand);
 }
Ejemplo n.º 4
0
        private void BookmarkSettings_Click(object sender, RoutedEventArgs e)
        {
            var up = new BookmarkSettingsFlyout();

            up.Show();
        }