converted to Xamarin Studio