Xamarin

Top 5 APIs in Xamarin Essentials you didn’t know about

If you are familiar with Xamarin Essentials and want to get right into the totally not clickbait list you can click right here. Xamarin Essentials provides developers with cross platform access to a plethora of commonly used features and native APIs. At the moment of writing there are 29 apis and growing. Some of these features used to be pretty annoying to setup but now you don’t have to do any of that and can just focus on the business logic of your application. The best part is that if you don’t use a feature it won’t be included after compiling so there is no fear of fat output files. Xamarin.Essentials supports the following platforms and operating systems: Platform Version Android 4.4 (API 19) or higher iOS 10.0 or higher

Read More »
Xamarin

Creating Pages from Code using Xamarin Forms

To create a screen or page (I will use both terms interchangeably) from the code you just have to follow these four steps: Create a class named as you want your screen to be called, by convention you must end the name with Page. Make that class inherit from the type of page you want to create. The most basic type of page is ContentPage. If you want to see the other types of pages you can read more here. In the constructor of the class for your page, instantiate the objects of the controls or views that you want to have inside it. If you are already familiar with XAML, on the code side the control classes are named just like their labels in XAML. Assign these controls to

Read More »
Xamarin

Adding an icon to a Button in Xamarin Forms

To achieve this we are going have to set the ContentLayout and Image properties from the Button we want to customize. Let’s just jump right into it. Here is the XAML Here is in C# This is pretty straight forward but I’m going to explain what we are doing. The Image property takes the name of an image resource, that’s going to be the icon for our button. You must add the image on each platform accordingly and remember to include the different sizes for each dpi/screen size for better visuals. The ContentLayout property has two values separated by a comma. First is the position we want the image to appear in defined by the ImagePosition enumerator we can set the image to the Top, Left, Right or Bottom of

Read More »
Xamarin

Extending Controls with Gesture Recognizers (part 2) – Adding a show password option

In the previous entry we were introduced the TapGestureRecognizer and saw an example of an image button and got a few ideas of what we could do with it. Today we are checking a practical use for it and see an implementation using a Command instead of an event handler. The Images are taken from here. You may have seen apps that give you the option to show the characters typed in the password field. This is a very useful functionality to avoid the user the annoyance of writing the password again just because of some typo. On this post you will learn how to do that same thing. The final result will look something like this: Let’s just jump right into it Using an Image as visual element and

Read More »
Xamarin

Extending Controls with Gesture Recognizers (part 1)

On this multipart series of posts we are going to review how to extend controls using Gesture Recognizers. This post is going to focus on the Tap Gesture Recognizer and by the end we will be able to turn a static image into a “clickable” image button. Let’s get started by giving you some general information… What is a Gesture Recognizer? Xamarin.Forms allows us to extend the way we interact with some visual elements by way of Gesture Recognizers. A Gesture Recognizer is an object that listens for some specific external estimule (the gesture) and launches an action in response (the command or event handler we specify). A Gesture is any physical action taken by the user on the device. That goes from tapping on the surface of the screen to shaking the device. For the purposes

Read More »
Five Questions

Five questions about becoming a Microsoft Certified Trainer (MCT)

I recently got my MCT Certification and I would like to share some details on it, in case someone wants to do the same I hope this can clarify a few things. I have never believed certifications are a 100% guarantee of quality work but having one can provide a certain amount of context of our expertise and some serenity to potential business associates. What is a Microsoft Certified Trainer? According to the official website they are the premier technical and instructional experts in Microsoft technologies. To me being an MCT means you have the capacity to teach complex subjects in a simple, understandable way. Like your favorite teacher but certified in Microsoft Technologies . Who might be interested? IT professionals and developers who want to incur in training activities

Read More »
About me
About me

Software developer and tech enthusiast who loves baking 👨🏽‍🍳. Currently working at Megsoft Consulting, Inc. and helping out at Streamelopers