How First.Second.Third get the namespace application from code with a namespace for example First.Second.Third ? You need to get the application namespace from the plugin (they are different) to access the current instance of the class. Of course, you can manually enter, but I have a script for 50 similar applications that have a different namespace (mandatory), so I would like to do it programmatically.
The bottom line comes down to that of this line:
var mainPage = (((App)Application.Current).RootPage); do this:
var mainPage = (((my.namespace.App)Application.Current).RootPage); It is possible to pass the desired namespace to the argument of the function that uses this string, but (the habit of js) does not work here in inserting a type to insert a variable that will be substituted at the right time and will make everything nice ((