Example #1
0
        private static void CanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            FrameworkElement senderElement = sender as FrameworkElement;

            if (OnlineHelpProvider.GetHelpTopic(senderElement) != null)
            {
                e.CanExecute = true;
            }
        }
Example #2
0
        private static void Executed(object sender, ExecutedRoutedEventArgs e)
        {
            string page = OnlineHelpProvider.GetHelpTopic(sender as FrameworkElement);

            if (page == null)
            {
                return;
            }

            string url = App.HelpBaseUrl + page;

            Process.Start(url);
        }