Make URL Text Label clickable on Xamarin.Forms (CodeSnipp)

Hi everyone, So we are still on the XamarinUIJuly, the guys are delivering such a good set of post regarding of what Xamarin.Forms is capable of and I belive it was a good time to send this snipped too. I was requested to provide the capability of make partial text clickable say for example we […]

Zebra Bluetooth Printer and Xamarin

Zebra

Hi everyone, recently I was assigned to make an app on Xamarin that can communicate with a Zebra Printer via Bluetooth, It wasn’t exactly the most straight forward experience, since the documentation is lacking of structure let say, but have to mention that the response time of the Zebra team on Xamarin repository on GitHub […]

Xamarin NSTextView to HTML

Sometimes you want to use all the power of NSTextView with all formatting style and everything. var htmlAttr = new NSAttributedStringDocumentAttributes () { DocumentType = NSDocumentType.HTML }; var range = new NSRange (0, txtNoteView.TextStorage.Length); var att = txtNoteView.AttributedString; var error = new NSError (); var html = txtNoteView.TextStorage.GetData (range, htmlAttr,out error); The html obj now […]

NSTextField positioning the cursor

Hi everyone, This is a quick one, so I was in the need of change the position of the cursor of one NSTextField, because it pre-fill the field with a partial value which came from another field (Let’s say I selected a country on one field and the state field had to came with the […]

NSColor and right RGBA settings

Hello guys, Today I was working with a Xamarin.Mac project, and as you may know, OS X and Xcode are not very friendly guys when you need some customizations on the UI, they try to force you to use the defaults (that aqua style), but… my friend Victor made a great design and it was […]

Animating a NSView : The Basics

Sometimes you feel the need that the NSView that you are working with  resizing, moving, etc. feels too rude when you change the position, the dimensions or anything. A code snipped that could help you out giving a little ease is the follow: NSAnimationContext.RunAnimation ( (context) => { context.Duration = 0.5; context.AllowsImplicitAnimation = true; //<WHATEVER YOU […]

Reflections With Xamarin – Part 01

Reflections

ometimes you have a table/class that have so many fields/attributes, that the mere thinking of make the interaction of the whole object give you headache. You’re not alone. For cases like this, there is a little thing called Reflections. According to Microsoft Documentation: Reflection provides objects (of type Type) that describe assemblies, modules and types. […]