Dynamically created layers and labels?

Discussion created by kenadams73 on Jan 18, 2011
Latest reply on Jun 14, 2011 by thebasicimage
I have a question about labels.

I have a wpf-browser-application where layers are created dynamically/runtime by the user. For example, the user imports a text file with coordinates that is displayed in a new layer. The layers are created in the code/c# (not in the xaml) and should not be saved or anything, they only exists as long as the user runs the program.

My question is: how do I display labels for the objects in these layers?

Currently the layers are graphic layers, but I cannot find any way to show labels for graphiclayers. It feels like I'm using the wrong kind of layer or something... it shouldn't be this hard to display simple labels?

Any suggestions how to solve this? All help appreciated!