protected async override void OnClick()
        {
            //TODO: Modify this line below to experiment with the different renderers
            //await DotDensityRenderer.DotDensityRendererAsync();
            //Charts
            //await ChartRenderers.BarChartRendererAsync();
            //await ChartRenderers.PieChartRendererAsync();
            await ChartRenderers.StackedBarChartRendererAsync();

            //ClassBreak
            //await ClassBreakRenderers.CBGraduatedColorsManualBreaks();
            //await ClassBreakRenderers.CBRendererGraduatedColors();
            //await ClassBreakRenderers.CBRendererGraduatedColorsOutlineAsync();
            //await ClassBreakRenderers.CBRendererGraduatedSymbols();
            //await ClassBreakRenderers.UnclassedRenderer();
            //await ClassBreakRenderers.CBGraduatedColorsManualBreaks();
            //Dot Density
            //await DotDensityRenderer.DotDensityRendererAsync();
            //HeatMap
            //await HeatMapRenderers.HeatMapRenderersAsync();
            //Proportional
            //await ProportionalRenderers.ProportionalRendererAsync();
            //Unique Value
            //await UniqueValueRenderers.UniqueValueRendererAsync();
            //Simple renderers
            //await SimpleRenderers.SimpleRendererPolygon();
            //await SimpleRenderers.SimpleRendererLine();
            //await SimpleRenderers.SimpleRendererPoint();
            //await SimpleRenderers.SimpleRendererLineFromStyeItem();
        }
        protected async override void OnClick()
        {
            //TODO: This line below gets the first point layer in the project to apply a renderer.
            //You can modify it to use other layers with polygon or line geometry if needed.
            var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType <FeatureLayer>().FirstOrDefault(s => s.ShapeType == esriGeometryType.esriGeometryPolygon);

            //TODO: Modify this line below to experiment with the different renderers
            switch (renderType)
            {
            case EnumRenderType.UniqueValueRenderer:
                await UniqueValueRenderers.UniqueValueRendererAsync(lyr);

                renderType = EnumRenderType.ClassBreakRenderer;
                break;

            case EnumRenderType.ClassBreakRenderer:
                await ClassBreakRenderers.CBRendererGraduatedColorsOutlineAsync(lyr);

                renderType = EnumRenderType.BarChartRenderer;
                break;

            case EnumRenderType.BarChartRenderer:
                await ChartRenderers.BarChartRendererAsync();

                renderType = EnumRenderType.PieChartRenderer;
                break;

            case EnumRenderType.PieChartRenderer:
                await ChartRenderers.PieChartRendererAsync();

                renderType = EnumRenderType.StackedBarChartRenderer;
                break;

            case EnumRenderType.StackedBarChartRenderer:
                await ChartRenderers.StackedBarChartRendererAsync();

                renderType = EnumRenderType.HeatMapRenderer;
                break;

            case EnumRenderType.HeatMapRenderer:
                await HeatMapRenderers.HeatMapRenderersAsync(lyr);

                renderType = EnumRenderType.UniqueValueRenderer;
                break;

            case EnumRenderType.SimpleRendererPolygon:
                await SimpleRenderers.SimpleRendererPolygon(lyr);

                renderType = EnumRenderType.ProportionalRenderer;
                break;

            case EnumRenderType.ProportionalRenderer:
                await ProportionalRenderers.ProportionalRendererAsync(lyr);

                renderType = EnumRenderType.UniqueValueRenderer;
                break;

            default:
                renderType = EnumRenderType.UniqueValueRenderer;
                break;
            }


            //
        }