Web- und Software Development

Wie kann man aus der ApplicationBar heraus eine neue Seite aufrufen? – WP7 Quicky

Written By: - Nov• 10•10

Antwort: Dazu in der entsprechenden PhoneApplicationPage im Knoten ApplicationBar (oder an gemeinsam verwendeter Stelle) ein Click Event implementieren und über Navigate die View ansteuern.

1
2
3
4
private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
{
    NavigationService.Navigate(new Uri("/Views/Page1.xaml", UriKind.Relative));
}

Demnächst jeden Tag ein Windows Phone 7 Quicky. Also bleib dran!

Viel Spaß beim entwickeln : )

Ähnliche Beiträge

You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.