Example #1
0
        private void ChangeSelectedTag(object sender, RoutedEventArgs e)
        {
            var term = sender == previousTagButton
                ? TagCloudNavigationSession.CurrentSession().GetPreviousTerm()
                    : TagCloudNavigationSession.CurrentSession().GetNextTerm();

            CreateTagCloud(new [] { term });
        }
Example #2
0
        private void TagCloudPopUp(object sender, RoutedEventArgs e)
        {
            var text = searchBox.Text;

            if (string.IsNullOrWhiteSpace(text))
            {
                CreateTagCloud(new string[] {});
            }
            else
            {
                TagCloudNavigationSession.CreateNewSession(text);
                CreateTagCloud(new [] { TagCloudNavigationSession.
                                        CurrentSession().GetNextTerm() });
            }
        }
Example #3
0
 public static void CreateNewSession(String query)
 {
     session = new TagCloudNavigationSession(query);
 }