Example #1
0
        public void Navigate(object sender, ExecutedRoutedEventArgs e)
        {
            if (e.Parameter == null || !(e.Parameter is string))
            {
                return;
            }
            string param = e.Parameter as string;

            if (param[0] == '.')
            {
                param = param.Substring(1);
            }
            if (param[0] == '.')
            {
                param = param.Substring(1);
            }
            string path = ClrMDRIndex.Setup.HelpFolder + param;

            if (File.Exists(path))
            {
                Dispatcher.CurrentDispatcher.InvokeAsync(() => ValueWindows.ShowHelpWindow(path));
                //ValueWindows.ShowHelpWindow(path);
                //string title;
                //string md = LoadHelpFile(path, out title);
                //DocumentViewer.Document = _markdown.Transform(md);
                //this.Title = title;
            }
        }
Example #2
0
 private void ButtonHelpClicked(object sender, RoutedEventArgs e)
 {
     ValueWindows.ShowHelpWindow(Setup.HelpFolder + System.IO.Path.DirectorySeparatorChar + @"\Documentation\ValueWindows.md");
 }