Tags: | Categories: Silverlight Posted by Christoph on 1/18/2010 1:56 PM | Comments (0)

Ich hatte das Problem, dass ein Control (welches natürlich wieder in anderen Controls liegt) und das per Code erzeugt wird, eine nicht statische Methode an der Page aufrufen soll.

Daher brauche ich natürlich irgendwie die aktuelle Instanz der Page.

Das geht in dem Control so:

DirectCast(App.Current.RootVisual, Page).MethodToCall()

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading