All I'm doing is using the spatial tools from the SDK and I'm trying to code it to work with Points. I can get the table to populate to work but the points don't select....the graphic symbol is still set for fill or line. Where shold I change this? I think it is here: but not sure what to put.
GraphicsLayer graphicsLayer = Map.Layers["MySelectionGraphicsLayer"] as GraphicsLayer;
if (featureSet != null && featureSet.Features.Count > 0)
{
foreach (Graphic feature in featureSet.Features)
{
feature.Symbol = LayoutRoot.Resources["ResultsFillSymbol"] as FillSymbol;
graphicsLayer.Graphics.Insert(0, feature);
}
}
AND/OR HERE
public MainPage()
{
InitializeComponent();
ResourceDictionary rd = Application.Current.Resources;
levelGreaterThanBrush = rd["levelGreaterThanBrush"] as SolidColorBrush;
levelLessThanBrush = rd["levelLessThanBrush"] as SolidColorBrush;
levelEqualsBrush = rd["levelEqualsBrush"] as SolidColorBrush;
ribbonElementBackground = rd["RibbonElementBackground"] as LinearGradientBrush;
ribbonElementBackgroundHighlight = rd["RibbonElementBackgroundHighlight"] as LinearGradientBrush;
_drawSurface = new Draw(Map)
{
// FillSymbol = LayoutRoot.Resources["DefaultPointSymbol"] as SimpleMarkerSymbol,
LineSymbol = LayoutRoot.Resources ["DefaultLineSymbol"] as SimpleLineSymbol,
FillSymbol = LayoutRoot.Resources["DefaultFillSymbol"] as FillSymbol
};
_drawSurface.DrawComplete += MyDrawSurface_DrawComplete;
_queryTask = new QueryTask("http://dgpdch01/ArcGIS/rest/services/CAD/MapServer/0");
_queryTask.ExecuteCompleted += QueryTask_ExecuteCompleted;
_queryTask.Failed += QueryTask_Failed;
}