hi, total newbie here trying my first stab with using the functionality in the samples, and I have a very basic question. The XAML for the various samples, for example the SubLayerList tool I'm trying to add, has a UserControl tag which encloses everything in that application, including the map.
In my code-behind (mainPage.xaml.cs), I've added the code displayed for the new SubLayerList class. In my MainPage.xaml, l already have a UserControl declared for the MainPage class which encloses the map, legend, etc. So when I try to add XAML code to create another UserControl for the SubLayerList tool, I get an error in the XAML ("An XML document cannot contain multiple root level elements"). When I leave that out, I get errors in the code-behind in the new SubLayerList class definition ("The name 'InitializeComponent' does not exist in the current context").
Is there someone who can tell me how to resolve this? Thanks for any help..
Dan