This project is read-only.

how to clear pushpins

Sep 15, 2008 at 2:07 PM
hi,
    im having three buttons in my deepearth application. each button will plot certain number of pushpins in different places while clicking. my instance, when i'm clicking first button it will plot 5 pushpins, and while clicking another button, first i need to clear all the pushpins(created early), then need to plot new pushpins in diiferent areas. i have a doubt in clear pushpins. is it posible to clear pushpins? will shapeCollection.cs help me to do this????? can anyone share your solutions.


Thanks in Advance,
Ree.
Sep 16, 2008 at 7:02 AM
in the download project...

in the Page.xaml.cs file you will find a private object called "ShapeLayer"

there is a List property you can accesss the pins in that list properly

e.g.
shapeLayer.List.Clear();

Sep 16, 2008 at 3:07 PM
thanks dotnetnoobie. its working fine.