/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
MainPage main; // MainPage als Variable initialisieren void UserControl_Loaded(object sender, RoutedEventArgs e) { main = Application.Current.RootVisual as MainPage; // MainPage als Instanz definieren }