I am trying to add the identify example to my app:http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#IdentifyI added the code to the MainPage.xaml and then added the vb code...then made sure all the references were identifyied...I change the code a bit to point to a new LayerI then build and am gettign errors on the RED belowError:DataGridScrollViewer is not declared. It may be inaccessable due to its protection level.I cant figure out whats going on here and where the error is coming from?Any thoughts?
Private Sub IdentifyTask_ExecuteCompleted(ByVal sender As Object, ByVal args As IdentifyEventArgs)
IdentifyDetailsDataGrid.ItemsSource = Nothing
If args.IdentifyResults IsNot Nothing AndAlso args.IdentifyResults.Count > 0 Then
If DataGridScrollViewer.Visibility = Visibility.Collapsed Then
DataGridScrollViewer.Visibility = Visibility.Visible
IdentifyGrid.Height = Double.NaN
IdentifyGrid.UpdateLayout()
End If
ShowFeatures(args.IdentifyResults)
Else
IdentifyComboBox.Items.Clear()
IdentifyComboBox.UpdateLayout()
If DataGridScrollViewer.Visibility = Visibility.Visible Then
DataGridScrollViewer.Visibility = Visibility.Collapsed
IdentifyGrid.Height = Double.NaN
IdentifyGrid.UpdateLayout()
End If
End If
End Sub