/// <summary> /// Event handler when the selected features changes /// </summary> /// <param name="obj"></param> private void OnMapSelectionChangedEvent(MapSelectionChangedEventArgs obj) { //Clear the list first if (FeatureItems?.Count > 0) { FeatureItems.Clear(); } UpdateSymbolList(); }
/// <summary> /// Event handler when the active MapView changes /// </summary> /// <param name="obj"></param> private void OnActiveMapViewChangedEvent(ActiveMapViewChangedEventArgs obj) { if (obj.IncomingView == null) { FeatureItems.Clear(); return; } //Clear the list first if (FeatureItems?.Count > 0) { FeatureItems.Clear(); } UpdateSymbolList(); }