private void QueryDetailsDataGrid_LoadingRow(object sender, DataGridRowEventArgs e) { string value = e.Row.DataContext.ToString(); try { string s = e.Row.DataContext.ToString(); if (s.Contains("URL")) { string[] sSplit = s.Split(','); string[] link = sSplit[1].Split(']'); //assigns the link value to a global variable URLlink = link[0]; //blnMoreInfo controls whether or not the more info button brings up a page blnMoreInfo = true; //HtmlPage.PopupWindow(new Uri("http://www.silverlight.net"), "new", options); } else { } } catch { } }
private void btn_MoreInfo(object sender, RoutedEventArgs e) { if (blnMoreInfo == true) { MessageBox.Show(URLlink); } else { MessageBox.Show("No Info Available"); } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.