<esri:FeatureLayer ID="MG_Polygon" Visible="True" MouseLeftButtonUp="Poly_MouseLeftButtonUp" Url="http://156.555.555.189/ArcGIS/rest/services/TEST_FS/FeatureServer/24" DisableClientCaching="True" Mode="OnDemand" SelectionColor="#FFFFFF00" OutFields="*" />
Private Sub Poly_MouseLeftButtonUp(ByVal sender As Object, ByVal args As GraphicMouseButtonEventArgs) Dim featureLayer As FeatureLayer = TryCast(sender, FeatureLayer) For Each g As Graphic In featureLayer.Graphics If (g.Selected) Then g.UnSelect() End If Next args.Graphic.Select() MyPolygonFeatureDataForm.GraphicSource = args.Graphic PolygonDataFormBorder.Visibility = Visibility.Visible End Sub
Solved! Go to Solution.
DataFormBorder.Visibility = Visibility.Visible
FeatureDataForm.GraphicSource = change.Geometry
FeatureDataForm.FeatureLayer = TryCast(change.Layer, FeatureLayer)
FeatureDataForm.GraphicSource = change.Graphic
Christopher I hope you are still there....In post #7 you gave an example of changing the Geometry and the featuer layer....
I am trying this and getting errors on the 2nd line....'Geometry' is not a member of 'ESRI.ArcGIS.Client.Editor.Change'
DataFormBorder.Visibility = Visibility.Visible
FeatureDataForm.GraphicSource = change.Geometry
FeatureDataForm.FeatureLayer = TryCast(change.Layer, FeatureLayer)
FeatureDataForm.GraphicSource = change.Graphic