ArcGISWindowsPhoneSDK.Statistics.OutStatisticsListBox_Loaded C# (CSharp) Method

OutStatisticsListBox_Loaded() private method

private OutStatisticsListBox_Loaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        private void OutStatisticsListBox_Loaded(object sender, RoutedEventArgs e)
        {
            Query query = new Query()
            {
                GroupByFieldsForStatistics = new List<string> { "sub_region" },
                OutStatistics = new List<OutStatistic> {
                    new OutStatistic(){
                        OnStatisticField = "pop2000",
                        OutStatisticFieldName = "subregionpopulation",
                        StatisticType = StatisticType.Sum
                    },
                    new OutStatistic(){
                        OnStatisticField = "sub_region",
                        OutStatisticFieldName = "numberofstates",
                        StatisticType = StatisticType.Count
                    }
                 }
            };
            queryTask.ExecuteAsync(query);
        }