public bool IsHelpAvailable(object context) { TopicHelpContext topicHelpContext = context as TopicHelpContext; if (topicHelpContext != null && !string.IsNullOrEmpty(this.DetermineHelpTopic(topicHelpContext.TopicIdentifier, topicHelpContext.Framework))) { return(this.GetBlendSDKHelp(topicHelpContext.Framework).Available); } return(false); }
public override void Execute(object parameter) { TopicHelpContext contextFromParameter = TopicHelpContext.CreateContextFromParameter(parameter, this.DesignerContext); if (contextFromParameter == null) { return; } Process.Start(string.Format((IFormatProvider)CultureInfo.InvariantCulture, "http://www.bing.com/search?q=Expression+Blend+{0}+{1}", new object[2] { (object)this.GetFriendlyNameForFrameworkIdentifier(contextFromParameter.Framework.Identifier), (object)this.GetTypeNameFromFullName(contextFromParameter.TopicIdentifier) })); }
public void ProvideHelp(object context) { TopicHelpContext topicHelpContext = context as TopicHelpContext; if (topicHelpContext == null) { return; } string helpTopic = this.DetermineHelpTopic(topicHelpContext.TopicIdentifier, topicHelpContext.Framework); if (string.IsNullOrEmpty(helpTopic)) { return; } this.ShowSDKHelpTopic(helpTopic, topicHelpContext.Framework); }
public override void Execute(object parameter) { this.HelpService.ProvideHelp((object)TopicHelpContext.CreateContextFromParameter(parameter, this.DesignerContext)); }
public bool CanExecute(object parameter) { return(this.HelpService.IsHelpAvailable((object)TopicHelpContext.CreateContextFromParameter(parameter, this.DesignerContext))); }