Wednesday, July 14, 2010

How do you?

I was wondering once how am I going to connect all the .xaml file pages. I just got it. I went VSE 2010 for Windows Phone and created a list app. (you can use Blend 4 for Windows phone BETA) and went into MainPage.cs and saw this code sentence.

// If selected index is -1 (no selection) do nothing
if (MainListBox.SelectedIndex == -1)
return;

// Navigate to the new page
NavigationService.Navigate(new Uri
("/DetailsPage.xaml?selectedItem=" + 
MainListBox.SelectedIndex, UriKind.Relative));

// Reset selected index to -1 (no selection)
MainListBox.SelectedIndex = -1;

I can put this code and tweak it (like the page transition and change the page name)

No comments:

Post a Comment