I have some NUnit tests on .net 4.5.1 class library against PCL and both use SQLite.Net PCL, the former uses its Win32 platform.When running from a test runner […]
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); […]
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 […]
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 […]
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 […]
Solving Blend 2013 interactivity error
I am playing with Blend 2013 Silverlight Sketchflow for creating web application mockups. Recently I’ve stumbled into an curios error when adding interactivity to a button. Here is […]
Investigating why an instance is kept alive in a .net application
Sometimes, when I want to verify .net memory management behavior, I fire up ANTS Memory Profiler and run it on a test application just to see how memory […]
When .net assemblies aren’t properly versioned odd errors happen
Today I’ve upgraded a SignalR library from 1.x to 2.0 in an MVC 5 (server) and WPF (client) projects I am developing. The upgrade itself went smooth but […]
Android activity life cycle and IoC
I was recently working on an Android (Xamarin, .net) application based on MvvmCross framework. Actually not just an Android app since it could be ported quite easily to […]