Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Monotouch Dialog Casting GlassButton errors on updated Monotouch Xamarin.iOS Version: 6.4.1.1

$
0
0

Hi,

I have had to revert to the source version of MTD since the element captions font size seems to be a problem in the released version.

Now since then my app is throwing an exception that I can't seem to address.

I have a custom element type called GlassButtonElement which basically uses the Glassbutton from MTD.

The following line of code fails:

this.Button = new MonoTouch.Dialog.GlassButton(new RectangleF(0,0,300, 50))

the Button declaration is below:

MonoTouch.Dialog.GlassButton Button;

The error is as follows:

Unhandled Exception: System.InvalidCastException: Unable to cast object of type 'MonoTouch.Dialog.GlassButton' (Objective-C type: 'MonoTouch.Dialog.GlassButton') to type 'MonoTouch.Dialog.GlassButton'. Additional information: Selector: isEnabled Method: MonoTouch.Dialog.GlassButton:get_Enabled ()

at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_IntPtr (intptr,intptr,intptr)

Any ideas ?

This does not fail with the shipped MTD.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>