コード例 #1
0
        private void ExecuteOpenExternalLink(object sender, ExecutedRoutedEventArgs e)
        {
            Hyperlink hyperlink = e.OriginalSource as Hyperlink;

            if (hyperlink != null && hyperlink.NavigateUri != null)
            {
                UIUtility.LaunchExternalLink(hyperlink.NavigateUri);
                e.Handled = true;
            }
        }
コード例 #2
0
        private void OnViewLicenseTermsRequestNavigate(object sender, RoutedEventArgs e)
        {
            Hyperlink hyperlink = (Hyperlink)sender;

            if (hyperlink != null && hyperlink.NavigateUri != null)
            {
                UIUtility.LaunchExternalLink(hyperlink.NavigateUri);
                e.Handled = true;
            }
        }
コード例 #3
0
        private void OnMigrationUrlNavigate(object sender, RoutedEventArgs e)
        {
            var hyperlink = (Hyperlink)sender;

            if (hyperlink != null &&
                hyperlink.NavigateUri != null)
            {
                UIUtility.LaunchExternalLink(hyperlink.NavigateUri);
                e.Handled = true;
            }
        }
コード例 #4
0
        private void OnMigrationHelpUrlNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
        {
            var hyperlink = (Hyperlink)sender;

            if (hyperlink != null &&
                hyperlink.NavigateUri != null)
            {
                UIUtility.LaunchExternalLink(hyperlink.NavigateUri);
                e.Handled = true;
            }
        }
コード例 #5
0
ファイル: NuGetUI.cs プロジェクト: WeilerWebServices/NuGet
 public void LaunchExternalLink(Uri url)
 {
     UIUtility.LaunchExternalLink(url);
 }