I have a method in my Mainwindow, i want to call this method in an other usercontrol. I dont use a static method because my MainWindow is not Static, and I can't make it static. So I figured out to use this, but I dont know what comes behind the AS and I dont know if I can put a method is VAR? I also can't make another MainWindow instance because that gives me a Stackoverflow exception. How can I solve this?
var myMethode= mainWindow.FindName("MyMethode") as (should be a methode);
if (myMethode!= null)
{
//My code
}
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)