This project is read-only.

Navigation problems with list

Aug 1, 2013 at 7:27 PM
I have a list page that get's it's links from a database. The first item of the list wont be selected when I navigate to the list and the source pages from the list items wont select the first tab when selected either.

My create link code.
SqlDataReader reader = db.Query(query);

while (reader.Read())
{
    Link link = new Link()
     {
         DisplayName = reader["Name"].ToString(),
         Source = new Uri(string.Format("/Content/ActiveProjectContent.xaml#{0}",
                        reader["UID"].ToString()), UriKind.Relative)
     };

      List.Links.Add(link)
}
I'm guessing it has something to do with my Source because even when I select a different item in the list it seems the conent does not get updated. The content is a tab page and that is not even selecting the first tab by default.
Aug 2, 2013 at 2:29 PM
Sorry to keep asking questions that seem to have easy answers. What I was looking for was the SelectedSource. Amazing framework... just new to WPF.