How to remove all data in an observable collection? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to remove all data in an observable collection?

this for a uwp, I need to remove all the data in the collection

8th Jun 2017, 7:23 PM
Martin Nowak
Martin Nowak - avatar
7 Answers
+ 4
Try calling the Clear() method on the object of your collection. collection.Clear();
8th Jun 2017, 7:27 PM
Aibek T.
Aibek T. - avatar
+ 1
What is uwp ? or did you mean wpf
8th Jun 2017, 7:31 PM
sneeze
sneeze - avatar
+ 1
universal windows application
8th Jun 2017, 7:32 PM
Martin Nowak
Martin Nowak - avatar
+ 1
if you use windows 10 its the programs like groove music, maps, calculator, edge. they run on any windows device- phone, tablet, pc, Xbox, hololens with the same exact code. most of them are in the windows 10 store but there are ways to get them without the store
8th Jun 2017, 10:10 PM
Martin Nowak
Martin Nowak - avatar
+ 1
Thank you.I see it is a platform. Gone read more about it.
8th Jun 2017, 10:16 PM
sneeze
sneeze - avatar
0
Fun. I did not know that abbreviation. What does it mean : an executable (say exe-file) that can run on Windows?
8th Jun 2017, 10:06 PM
sneeze
sneeze - avatar
0
no problem its my favorite platform. if youre interested I would also look into xamarin
8th Jun 2017, 10:35 PM
Martin Nowak
Martin Nowak - avatar