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
7
votes
2 answers

Visual Studio MacOS error MSB4057: The target "Build" does not exist in the project

I have created a simple C# .net core console application project in VS MacOS. But I get error MSB4057. There a similar question on stackoverflow but doesn't explain anything how to fix this kind of error. The problem is same when I create asp.net…
abhimanyuaryan
  • 3,882
  • 5
  • 41
  • 83
7
votes
1 answer

Will Xamarin Android execute OnCreateView when the IntPtr constructor is called?

I am aware of the constructor difficulty in Xamarin Android as is explained here : No constructor found for ... (System.IntPtr, Android.Runtime.JniHandleOwnership) and all the fragments & activities & other custom views that I create in the app…
7
votes
5 answers

SQLite-net-pcl - Always returning ID as 0 (Xamarin)

I recently moved across from SQLite.NET to SQLite-net-pcl due to the Android 7.0 SQlite issue. In the process I have updated all my libraries and all is working well with regards to insert/drop etc. The only issue I have is that every time I…
Phill Wiggins
  • 2,577
  • 4
  • 28
  • 33
7
votes
1 answer

Xamarin Notification Push TodoItemManager

I am following this guide: Xamarin Guide And in this code: protected override void OnRegistered(Context context, string registrationId) { Log.Verbose("PushHandlerBroadcastReceiver", "GCM Registered: " + registrationId); …
Efeyabel
  • 508
  • 4
  • 18
7
votes
3 answers

Xamarin.Android: Error APT0000: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.AppCompat'

I'm trying to use the CoordinatorLayout in my Xamarin.Android app. I've been using a custom theme with Theme.Material.Light as its parent, which worked fine before I added the CoordinatorLayout. When I add it, I get an error telling me I have to use…
Jonathan
  • 648
  • 4
  • 13
  • 34
7
votes
2 answers

Failed to install Visual Studio for Mac Preview on macOS Sierra

On macOS Sierra 10.12.2 the Visual Studio for Mac Preview fails to install. The install version is 3.0.0. (1). The software requirements are all installed, but the installer fails to detect the Android SDK at some point: [2017-01-12 10:08:52.260]…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
7
votes
2 answers

Xamarin Forms Entry invoke Completed event

I'm currently working on a login and registration page within Xamarin Forms and after changing the done button of the keyboard to next and go on the last one I am no longer receiving the Completed event on Android (working fine on iOS). In the…
MegaMiley
  • 478
  • 1
  • 5
  • 19
7
votes
2 answers

Integrating React Native into Xamarin Project

I have been tasked to see if it is possible to integrate React Native into a Xamarin.Forms project. I think I came fairly close to achieving this, but I can't say for sure. I'm aware that this is a bit of a weird/ backwards solution, but I'd like to…
mylogon
  • 2,772
  • 2
  • 28
  • 42
7
votes
3 answers

How to Inflate an expanding view with a fixed aspect ratio view

In my application I have a scrolling view. During the life of my application I dynamically add new views to the scrolling view. I can add the views with little issue, however I cant get the dimensions right. Here is a sketch of my desired…
flakes
  • 21,558
  • 8
  • 41
  • 88
7
votes
1 answer

WCSession Send Message gives error "payload could not be delivered"

I am using Xamarin to develop an Apple Watch app. I am trying to send a message from my watch to the iPhone with my SendMessage function. When I do this, I get in the out error the message payload could not be delivered. I can only read part of the…
Drake
  • 2,679
  • 4
  • 45
  • 88
7
votes
3 answers

Difference between UWP and Xamarin's UWP?

I was trying to learn basics of xamarin. I came across Adding a Universal Windows Platform (UWP) App and I was trying to figure out advantages of using it over normal UWA with PCL or Shared projects. Is it different from UWP, or does it offers more…
Dombie
  • 129
  • 2
  • 9
7
votes
2 answers

MasterDetailPage Master page wont open with IsGestureEnabled set to false Xamarin.Forms Android

I have a master detail page operating on my app. The standard method for opening the master page is to either select the burger menu icon or slide from the left. One of my detail pages happens to use a carousel page. The swiping from the left can…
Richard Pike
  • 679
  • 1
  • 8
  • 22
7
votes
3 answers

Xamarin.Forms - XamlCompilation MissingMethodException

I want to improve performance of my Xamarin.Forms UWP application because it is extremely slow in Release mode (".NET native" checked). So I apply XAMLC at the assembly level in the PCL project: [assembly: XamlCompilation…
Blazey
  • 73
  • 1
  • 5
7
votes
1 answer

How to create a multiline label in StackLayout/Grid for UWP?

I'm using Xamarin.Forms and I haven't found out how to have a multiline label for UWP. In my real project I have the label in a Grid on a ViewCell in a ListView. For the below example I've put it into a StackLayout:
testing
  • 19,681
  • 50
  • 236
  • 417
7
votes
3 answers

Xamarin won't deploy

Good night everybody! I'm trying to get started developing with Xamarin, but i'm out of luck to get things running in first place. I recently installed VS2015 with the custom option, where I checked to instal Xamarin. After the setup completion I…
Abner
  • 416
  • 5
  • 18