Change default timeout

The default timeout of an HttpClient is 100 seconds. HttpClient Timeout You can adjust to your HttpClient and set a custom timeout duration inside of your HttpService. httpClient.Timeout = 5000; HttpClient Request Timeout You could alternatively define a timeout via a cancellation token CancellationTokenSource using (var cts = new CancellationTokenSource(new TimeSpan(0, 0, 5))) { await … Read more

How to correctly use the Image Source property with Xamarin.Forms?

You shouldn’t reference the path because the source property is cross-platform and since every platform has a different folder for assets like images, you only need to specify the filename and extension. The Image class knows where to look to find the file. Image files can be added to each application project and referenced from … Read more

How to resolve : unexpected error occured Initializing Android Designer” in VS 2015 with Xamarin

I had exactly the same problem described (on a new PC, with a new Visual Studio install) and am 99.9% sure the answer is in how updates are applied. Or, more importantly, how they aren’t being applied when you think they are. Go to Tools | Options | Xamarin | Other, and under Xamarin for … Read more

Xamarin form: How to reference to the parent binding

@qubuss gave the correct answer below, but I would like to give more context and show an example to make it more clear: Lets consider the following page: <ContentPage xmlns=”http://xamarin.com/schemas/2014/forms” xmlns:x=”http://schemas.microsoft.com/winfx/2009/xaml” x:Name=”firstPage” –>this reference parent context x:Class=”Your_Class_Name”> <ListView x:Name=”ListSource” ItemsSource=”{Binding ListSource}” > <ListView.ItemTemplate> <DataTemplate> <ViewCell> <Grid> // this come from item source <Label Text=”{Binding ABC}”></Label> … Read more

The “XamlCTask” task failed unexpectedly on visual studio for xamarin

This issue arise, if your Xamarin.Form version is not compatible/matching with your NuGet package which you have installed. So, I have just updated Xamarin.Forms for both xx.Droid and PCL and make the match the dependencies with NuGet package. Now it is working fine. Hope so this will work for you.

Xamarin Auth Store Keychain not working after ios10 upgrade

I was digging through the link Pat sent in the comment: bugzilla.xamarin.com/show_bug.cgi?id=43514 And found a helpfull comment by Pavel Sich, he said: Just make sure you enable the keychain access in Entitlements and select the entitlements for Simulator (Debug) builds too. By default this is not set. In my xamarin solution, I double clicked the … Read more

Release build but debugging enabled

I’m using Visual Studio for Mac and came across this same “Archive built with debugging enabled” warning after creating an archive of the Android project. To fix this, do the following: Go into the Android project options (double-click on the Android project). Select the Compiler options. In the “Debug information” drop-down menu, select None (mine … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)