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