Button click event performs function in other Controller

swizzyswizzy CHMember ✭✭
edited October 2016 in Xamarin.iOS

I'm a very beginner with xamarin and IOS..
I have a View with the MainContoller Class.
In this MainView I have a funktion for TableTransition.
Then i have a other View with a NavController Class.
In the View with the NavController i have a Button.
The NavView is a Containerview from the MainView
see: http://abload.de/img/navc3pgs.jpg

How can I run this function in mainview? when i press the Button in the navview?

public NavController (IntPtr handle) : base (handle)
btnMenue.TouchUpInside += delegate (object sender, EventArgs e)

Here I get an error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Can someone tell me why this does not work? Or how to do it right?

Sign In or Register to comment.