public async Task UpdateCollectionsAsync()
		{
			//Get the report Templates
			await QueuedTask.Run(() =>
			{
				//Creating a collection of grouping and non grouping report templates
				foreach (ReportTemplate reportTemplate in ReportTemplateManager.GetTemplates())
				{
					if (reportTemplate.Name.Contains("Grouping"))
						_groupingTemplates.Add(reportTemplate.Name);
					else
						_nonGroupingTemplates.Add(reportTemplate.Name);
				}
			});
			//Initialize the report template collection with non grouping styles - since non grouping field is selected.
			lock (_reportTemplatesLock)
				ReportTemplates = new ObservableCollection<string>(_nonGroupingTemplates);
			SelectedReportTemplate = ReportTemplates[0];
			//Get the report Styles
			var reportStylesList = new List<string>();
			ReportStyles.Clear();
			await QueuedTask.Run(() =>
			{
				foreach (string reportStyle in ReportStylingManager.GetStylings())
				{
					reportStylesList.Add(reportStyle);
				}
			});
			ReportStyles = new ObservableCollection<string>(reportStylesList);
			SelectedReportStyle = ReportStyles[0];
		}
        public async Task UpdateCollectionsAsync()
        {
            _activeMap = MapView.Active.Map;
            //Get the layers in active map
            GetLayers();

            //Get the report Templates
            await QueuedTask.Run(() =>
            {
                //Creating a collection of grouping and non grouping report templates
                foreach (ReportTemplate reportTemplate in ReportTemplateManager.GetTemplates())
                {
                    if (reportTemplate.Name.Contains("Grouping"))
                    {
                        _groupingTemplates.Add(reportTemplate.Name);
                    }
                    else
                    {
                        _nonGroupingTemplates.Add(reportTemplate.Name);
                    }
                }
            });

            //Initialize the report template collection with non grouping styles - since non grouping field is selected.
            ReportTemplates        = new ObservableCollection <string>(_nonGroupingTemplates);
            SelectedReportTemplate = ReportTemplates[0];
            //Get the report Styles
            await QueuedTask.Run(() =>
            {
                foreach (string reportStyle in ReportStylingManager.GetStylings())
                {
                    var defReportStyleAction = (Action)(() =>
                    {
                        ReportStyles.Add(reportStyle);
                    });
                    ActionOnGuiThread(defReportStyleAction);
                }
            });

            SelectedReportStyle = ReportStyles[0];
        }