예제 #1
0
        /// <summary>
        /// Get page help topic
        /// </summary>
        /// <param name="topicName">Topic name (use PagePaths const)</param>
        public static HelpTopic GetHelpTopic(string topicName)
        {
            HelpTopic topic = null;

            if (!string.IsNullOrEmpty(topicName))
            {
                HelpTopics topics = App.Current.HelpTopics;
                if (null != topics)
                {
                    topic = topics.GetTopic(topicName);
                }
            }

            return(topic);
        }
예제 #2
0
 public HelpTopicTemplateConverter()
 {
     _helpTopics = new HelpTopics();
 }
예제 #3
0
 public HelpViewModel()
 {
     HelpTopics        = HelpContents.GetAllHelpTopics();
     SelectedHelpTopic = HelpTopics.Single(h => h == HelpContents.Introduction);
 }