[MonoTouch] Actions do not work ("Could not parse expression'[Action ("btn_Start_Click:")]')
Jeff Stedfast
jeff at xamarin.com
Thu Dec 15 11:03:14 EST 2011
Hi Joerg,
This sounds like a bug in MonoDevelop. I've submitted a bug report in our
bugtracker here: http://bugzilla.xamarin.com/show_bug.cgi?id=2529
You should probably add yourself to the Cc so the developers can ask you
for further information and so you can track the progress.
Jeff
On Wed, Dec 14, 2011 at 3:36 AM, joergsc <joerg at schanko.com> wrote:
> Hi!
>
> I have an updated project (from Xcode 3 to Xcode 4.2.1). When I create a
> new
> ViewController and define a button on this(with outlet and action) it does
> not work.
> I tried:
> this.btn_Start.TouchUpInside+=(sender,e)=>{....} in ViedDidLoad as well as
> partial void btn_Start_Click (UIButton sender)
> But when you click the button, nothing happens - not even an error message.
> There is an Outlet and an Action in the .designer.cs file:
> [Outlet]
> MonoTouch.UIKit.UIButton btn_Start { get; set; }
>
> [Action ("btn_Start_Click:")]
> partial void btn_Start_Click (MonoTouch.UIKit.UIButton sender);
>
> I set a breakpoint and when I hover over the Action in the designer file,
> the message-bubble says:
> "Could not parse expression'[Action ("btn_Start_Click:")]'
>
> when I hover over this.btn_Start.TouchUpInside+= the bubble says: 'Unknown
> member:'TouchUpInside'
>
> I have now idea, what I made / goes wrong.
> Any ideas?
> Thx, Jörg
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Actions-do-not-work-Could-not-parse-expression-Action-btn-Start-Click-tp4194092p4194092.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111215/0c7a1a53/attachment.html
More information about the MonoTouch
mailing list