Questions tagged [xamarin]

Xamarin is a platform consisting of Xamarin.iOS, Xamarin.Android, Xamarin.Mac and Xamarin Test Cloud. It allows you to write cross-platform native Apps for iOS, Android and Mac and follow your app through its entire lifecycle. The introduction of Xamarin.Forms supports Native UI development for iOS, Android and Windows

is a platform consisting of , , , , and . The platform provides tools for the entire lifecycle of an App - developing, test and DevOps. This platform allows you to write cross-platform native applications for , and using , allowing you to share a lot of code between platforms.

Tag Usage

When using the , you should also include the related Xamarin platform tag your question relates to.

If you are describing a question about a crash in your app, please include a complete stack trace and, preferably, a minimal reproducible sample.

History

Xamarin was founded in May 2011 and is headquartered in San Francisco, with an engineering office in Boston, MA. Xamarin was acquired by Microsoft in February 2016.

At Microsoft's Build 2016 developer conference on March 31st, 2016, Microsoft announced a new licensing scheme; including Xamarin with all Visual Studio and Visual Studio for Mac versions, including Visual Studio Community edition. And now, Xamarin is free for anyone to use with Visual Studio, on either Mac or Windows

Xamarin created the Xamarin Platform which includes Visual Studio for Mac as well as a plug-in for Visual Studio on Windows, which can be used to develop native mobile applications for Windows, iOS, and Android platforms using the .NET framework.

The Xamarin Platform includes Xamarin.iOS, Xamarin.Android, and Xamarin.Mac (for macOS), which allows for the development of C# and .NET applications with full access to the native APIs. This allows for code sharing between platforms and the creation of applications for multiple platforms with a native user experience.

Xamarin 3 introduced , a framework for creating UI from code shared between platforms.

Xamarin 4 introduced a new SSH-based build host, to replace the old and buggy build host. The build host provides the connection between Visual Studio and the Mac in order to be able to build and deploy iOS applications.

Since June 2017 the Xamarin Platform supports libraries shifting and expanding the previous Portable Class Library (PCL). It enhances access to APIs within the .NET base class libraries and supports more platforms.

Resources

Books

Chat Rooms

50490 questions
63
votes
6 answers

How to use Push Notifications in Xamarin Forms

I have an app using Xamarin.Forms targeting IOS, Android and WP 8. I need push notification feature in my app. I have seen the pushsharp demos and it seems promising. But all the code I have seen is done separately for each platform. I would like it…
Rohit Vipin Mathews
  • 11,629
  • 15
  • 57
  • 112
63
votes
17 answers

Xamarin Android - How to rebuild Resource.designer.cs

In Xamarin Android - How to regenerate the Resource.designer.cs I tried to mark all the XML file's Build Action as "AndroidResource" and still the Resource.designer.cs won't get updated with new values. What event trigger generating this file?
Karthik Murugesan
  • 1,100
  • 3
  • 13
  • 25
62
votes
1 answer

MarkerClick works but InfoWindowClick does not open ViewModel

The following MarkerClick implementation works, perfectly fine. I could be able to open other Views via ShowViewModel View.cs mMap.MarkerClick += MMap_MarkerClick; private void MMap_MarkerClick(object sender, GoogleMap.MarkerClickEventArgs e) { …
casillas
  • 16,351
  • 19
  • 115
  • 215
62
votes
5 answers

You need to add a reference to Mono.Android.Export.Dll when you use ExportAttribute or ExportFieldAttribute

My code works fine, but when I added fragments with a new namespace to the project, I began getting the error You need to add a reference to Mono.Android.Export.Dll when you use ExportAttribute or ExportFieldAttribute I've searched online and…
Rupert
  • 4,209
  • 7
  • 31
  • 36
61
votes
2 answers

What is fatal signal 6 in android logcat

Im new to android development my app gets constantly killed when switching 11 times from activity and than it only says Fatal signal 6 (SIGABRT), code -6 in tid 9485 (Thread-141585) in my logcat. What does this mean?
Stefan van de Laarschot
  • 2,154
  • 6
  • 30
  • 50
59
votes
2 answers

Difference between Xamarin and Telerik's native script

Xamarin Write the model in C# Write the views for each OS in their own native way Xamarin promises that the new functionality in libraries is added the same day Telerik Native script Write in javascript and call native script's api that then…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
57
votes
5 answers

Xamarin Forms - negate bool binding values

I am learning the xamarin forms and mvvm pattern. I am wondering, if is it possible to negate binding bool value. What I mean is: I have, let's say Entry with isVisible Binding:
Grzegorz G.
  • 1,285
  • 2
  • 14
  • 27
57
votes
5 answers

How to update Xamarin for Android within Visual Studio Community 2015

I've recently installed Visual Studio Community 2015 and I've been following an MSDN tutorial "Build cross-platform apps with Xamarin". When its time to design the look of the app and I select the Main.axml file in the Resources\layout folder, the…
John Adams
  • 4,773
  • 25
  • 91
  • 131
57
votes
3 answers

How to know the current OS / platform of the executing code (Android / iOS)

Using Xamarin.Android and Xamarin.iOS, I need to now the current OS in a shared code section. Be it an enum, an int or a string, it doesn't matter. I tried this: System.Environment.OSVersion Which is always "Unix" with some kernel version…
Askolein
  • 3,250
  • 3
  • 28
  • 40
56
votes
5 answers

Singleton httpclient vs creating new httpclient request

I am trying to create layer for webservice using HttpClient in my Xamarin.Forms mobile app. without singlton pattern with singleton pattern in first approach i am creating new http client object in each new request made by mobile…
Hunt
  • 8,215
  • 28
  • 116
  • 256
56
votes
4 answers

How to format date and time in XAML in Xamarin application

I have a set up XAML code below. I want result like september 12,2014 2:30 PM.
Narendra
  • 1,332
  • 2
  • 13
  • 16
55
votes
16 answers

Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3

I have created a new Blank App (Xamarin.Forms Portable) project in Visual Studio 2015. When I try to run Droid project in Visual Studio Emulator for Android, I just get a generic error message: An error occured while creating 'VS Emulator 5"…
55
votes
5 answers

Xamarin iOS memory leaks everywhere

We've been using Xamarin iOS for the last 8 months and developed a non-trivial enterprise app with many screens, features, nested controls. We've done our own MVVM arch, cross platform BLL & DAL as "recommended". We share code between Android and…
Herman Schoenfeld
  • 8,464
  • 4
  • 38
  • 49
54
votes
1 answer

Xamarin vs. Mono vs. Monodevelop

What is the relationship between Xamarin and Mono(Are they the same product)? Is the Monodevelop IDE related to Mono?
user1751117
  • 669
  • 1
  • 5
  • 5
53
votes
8 answers

Separators in Xamarin.Forms

I'd like to use horizontal separator lines in a form. As far as I found out, Xamarin.Forms doesn't provide one. Could someone provide a snippet for separators? UPDATE 1 According to Jason's proposal, this looks fine: // draws a separator line and…
SteAp
  • 11,853
  • 10
  • 53
  • 88