I'm using big api sdk on a winform application ( Winform and no WPF ! ).
I'm able to add PushPin. I would like to delete somes pushpin.
I saw some linq method but i'm not able to compile because the "First" is not found. :
var pushpin = MyMapUserControl.MyMap.Children.First(p => (p.GetType() == typeof(Pushpin) && ((Pushpin)p).Tag == "FindMeLater"));
MyMapUserControl.MyMap.Children.Remove(pushpin);
My error :
'System.Windows.Controls.UIElementCollection' doesn't contain a definition for 'First' and no extensions method 'First' for a first argument 'System.Windows.Controls.UIElementCollection' has been found.
I add the include :
using System.Linq;
Anyone could help me please ?