Xamarin

Anything to do with Xamarin

Write your own Custom Controls for Xamarin.Forms

So why would you need to write a custom control for Xamarin? Does it have a purpose other than wrapping native controls that don’t exist in Xamarin? Why yes, it does serve a good purpose. I often will write a component to avoid having to copy and paste XAML repeatedly.

Handling API’s with Xamarin with JWT

If you are writing an application that has it’s authentication with JWT, you might be wondering what is a good method to do this? I’ve used the HttpClient along with Xamarin.Essentials’s Preference tools for this. To start out, I use the Preferences to store my token and refresh token. We also set our BaseAddress. Doing Handling API’s with Xamarin with JWT

Xamarin Forms Best Practices

So I’ve written a few Xamarin projects now, and there have been a few things I’ve found that help keep your code clean. Disclaimer, this is based on my own opinion and you can take it at that. Naming It’s important that you do not add the name Xam, Xamarin, or Android to your namespace. Xamarin Forms Best Practices