Esri.ArcGISRuntime.Toolkit.Controls.LegendTree.Refresh C# (CSharp) Method

Refresh() private method

Refreshes the legend control.
Note : In most cases, the control is always up to date without calling the refresh method.
private Refresh ( ) : void
return void
        internal void Refresh()
        {
            // refresh all map layer items (due to group layers we have to go through the legend hierarchy
            LayerItems.Descendants(item => item.LayerItems).OfType<MapLayerItem>().ForEach(mapLayerItem => mapLayerItem.Refresh());
        }
        #endregion