private void EnvironmentBlockTitle_MouseDown(object sender, MouseButtonEventArgs e) { FrameworkElement blockBorder = (FrameworkElement)sender; PipelineEnvironment environment = (PipelineEnvironment)blockBorder.DataContext; if (environment.LastBuildUri != null) { if (ClientConfiguration.Current.IsInVisualStudio) { _clientControl.OnUrlOpened(new UrlOpenedEventArgs(environment.LastBuildUri.ToString())); } else { Uri viewBuildDetailsUri = environment.Pipeline.Source.ClientHyperlinkService.GetViewBuildDetailsUrl(environment.LastBuildUri); Process.Start(viewBuildDetailsUri.ToString()); } } /* * FrameworkElement blockBorder = (FrameworkElement)sender; * * PipelineEnvironment environment = (PipelineEnvironment)blockBorder.DataContext; * * NavigationService.Navigate(new ShowPipelineEnvironment(environment)); */ }