Running a simple query task, which displays through a graphic layer. The querytask is using a time enabled server layer. I am able to map the layer to a timeslider when I pull the layer in as a featurelayer on the XAML, however not when displayed through a querytask.
I am trying to bind the querytask time extent results to a timeslider. However, i'm not sure exactly how to extract a startdate and enddate from the featureSet results.
Below is some of the code after the querytask is completed. Creating DateTimes to hold the start and end dates, and define the extent and timespan intervals for the slider. Not sure if there is any easier way to do this, or if im missing something other than mapping the featureSet result date extent.
/*was thinking I could easily point these to the featureset start and end dates to these variables and use them to for timeslider time extent. Not sure how to do so though*/
DateTime timeSliderStart;
DateTime timeSliderEnd;
ESRI.ArcGIS.Client.TimeExtent myTimeExtent = new ESRI. ArcGIS.Client.TimeExtent (timeSliderStart, timeSliderEnd);
Timespan myTimespan = new TimeSpan (1, 0, 0, 0);
System.Collections.Generic.IENumerable<DateTime> myIEnumerableDates = null;
my IEnumerableDates = ESRI.ArcGIS.Client.Toolkit.TimeSlider.CreateTimeStopsByInterval (myTimeExtent, myTimeSpan);
IncidentTimeSlider.Intervals = myIEnumerables;