Silverlight - MainPage aus UserControls ansteuern


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. MainPage main;
  2. // MainPage als Variable initialisieren
  3.  
  4.  
  5. void UserControl_Loaded(object sender, RoutedEventArgs e)
  6. {
  7. main = Application.Current.RootVisual as MainPage;
  8. // MainPage als Instanz definieren
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.