/// <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); }
public HelpTopicTemplateConverter() { _helpTopics = new HelpTopics(); }
public HelpViewModel() { HelpTopics = HelpContents.GetAllHelpTopics(); SelectedHelpTopic = HelpTopics.Single(h => h == HelpContents.Introduction); }