Category: Xamarin

looks

Prettying things up with Styles

Using styles you can define a consistent UI for your app and is a great way to make your XAML files more readable and maintainable in the long term. Some neat characteristics of styles: They are very easy to define. Can be inherited to minimize code reuse. Can be defined

Read More »
ios

Layout safe areas for iOS in Xamarin Forms

Since the launch of the iPhone X there is a notch at the top of the screen on iOS devices that tend to be annoying to work around. You would have to add some sort of margin to avoid your controls to be overlapped by it. The problem with this

Read More »
From https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/images?tabs=macos
caching

Image caching in Xamarin Forms

Someone asked me about an issue they were having when showing a ListView that had an image for each cell. When the user would scroll the images would flicker and the UI would turn a bit slow. The images were being loaded from the internet. The problem the person was

Read More »
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

Read More »
Beginners

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

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

Read More »