Here is a typical scenario where one postpones property value creation until the property getter is accessed: private SomeType something; public SomeType Something { get { if (something […]
Finally upgraded to Windows 8.1 (from 8.0)
Since Microsoft released Windows 8.1 I’ve tried to upgrade my 8.0 to 8.1. Without success though. Every upgrade ended just a little bit before 100% with a BSOD […]
Different XAML layouts for different device orientations in Xamarin.Forms
In case you’ve been wondering how to achieve different XAML layouts for different device orientation with Xamarin.Forms (just Forms from now), here is a solution. The thing is […]
An async problem
Imagine you have an asynchronous cancellable method like this: CancellationTokenSource cts; async Task DoSomethingAsync() { if (cts != null) cts.Cancel(); cts = new CancellationTokenSource(); try { await AnAsyncMethodAsync(cts.Token); […]
An alpha version of memory profiler for Xamarin Android
Memory profiling is one of the pillars of a good application. Even more important is on mobile devices since memory is usually scarce there. But sadly, there is […]
Troubleshooting memory leaks in Xamarin.Android
I was testing an application I am building with Xamarin/Android. One of the tests was rotating the device while Google Maps fragment being shown. By default each time […]
Json.NET, Android/Xamarin and date serialization
In case you are using JSon.NET with Android/Xamarin you might encounter an “Object null reference” exception when trying to serialize (and probably deserialize as well) a type that […]
A memory profiler for Xamarin.Android
Here is a first ever snapshot of my home-grown memory profiler for Xamarin.Android. While very spartan it does the core job – comparing two snapshots for objects with […]
Annoying problem that prevented comments on blog fixed. Hopefully.
Looks like I’ve finally fixed a problem that prevented you to comment on my/this blog. It was caused by blogengine.net‘s TypePadFilter extension that, when unconfigured, was throwing an […]
Using Autofac with Xamarin
Good news is that Autofac, my IoC container of choice, works with Xamarin and even within Portable Class Library. However there is one potential pitfall and it seems […]