Exemple #1
0
        private static void CopyHyperlinkUri(object sender, ExecutedRoutedEventArgs e)
        {
            try
            {
                if (sender == null || e == null)
                {
                    return;
                }

                e.Handled = true;

                FileHyperlink whLink = sender as FileHyperlink;

                if (whLink == null)
                {
                    return;
                }

                FileSystemCommands.CopyPath(whLink.NavigateUri);
            }
            catch { }
        }
Exemple #2
0
        /// <summary>
        /// Process command when a hyperlink has been clicked.
        /// Start a web browser and let it browse to where this points to...
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void Hyperlink_CommandNavigateTo(object sender, ExecutedRoutedEventArgs e)
        {
            try
            {
                if (sender == null || e == null)
                {
                    return;
                }

                e.Handled = true;

                FileHyperlink whLink = sender as FileHyperlink;

                if (whLink == null)
                {
                    return;
                }

                FileSystemCommands.OpenInWindows(whLink.NavigateUri);
            }
            catch {}
        }