I am trying to learn wpf, and in the process I am basically trying to load a number of paths and draw them. I have several test โfilesโ that contain specific samples of different types of geometry. Each "file" has a different number of shapes.
What is the best way to load these files into a WPF application. I obviously donโt want to create separate paths in XAML, and therefore there is a better way, I just donโt know this. I would still like forms to be tested, for example. I donโt want to just merge and convert multiple shapes into one set of shapes.
I do this in C # 4.0.
EDIT: I just simply serialize the coordinates of the various polygons into text files. Then I create Paths from these text files. If I have a list containing 3 polygons, how can I visualize them without explicitly creating 3 paths in the XAML file?
Carri source share