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
5 answers

The specified task executable location "C:\Program Files (x86)\Java\jdk1.7.0_71\\bin\javac.exe" is invalid

Ok im wondering where does xamarin get this path from? Severity Code Description Project File Line Source Suppression State Error The specified task executable location "C:\Program Files (x86)\Java\jdk1.7.0_71\\bin\javac.exe" is…
SEng
  • 89
  • 2
  • 5
7
votes
0 answers

OSX Custom Shaped OpenGL / OpenTK View

On OSX have a custom transparent window, with a NSView inside of it that manages OpenGL drawing: public class MyCustomOpenGLView : NSView { NSOpenGLContext openGLContext; // ... } I have set the following (using…
Bob
  • 821
  • 1
  • 17
  • 36
7
votes
2 answers

Mono cannot load encoding 437

To distribute our application without requiring the user to install the mono framework, we use MonoKickstart to dynamically link the Mono libraries on runtime. We are using the Ionic.Zip library to extract an archive when the application starts. By…
Tom
  • 532
  • 5
  • 19
7
votes
0 answers

what is possible types in Xamarin android for JavascriptInterface

I have small app created with Xamarin for android, where I have WebView for displaying some data and than backing up it with C# code for storing data. To get data from webview I use javascript and in C# I have method like…
Dainius
  • 1,765
  • 1
  • 17
  • 36
7
votes
2 answers

InputTransparent=true does not work in Xamarin Forms Android

From this link. false if the element should receive input; true if element should not receive input and should, instead, pass inputs to the element below. Default is false. What I want is, the Entry field must not be allowed to receive input from…
Akash Amin
  • 2,741
  • 19
  • 38
7
votes
1 answer

xamarin Application Failed To Deploy in Visual studio 2013

I tried more to run my Xamarin Application. It builds successfully but when trying to debug, the following ecxceptions are risen. As I understand there is some missed packages because Unexpected install output: Error: Could not access the Package…
KelishaZ
  • 101
  • 6
7
votes
1 answer

How can I put a BackgroundImage in Xamarin.Forms UWP?

Good Day everyone. I'm currently creating the UWP part of my Xamarin.Forms Project and I want to put a BackgroundImage in it. I've noticed that the images I used in Xamarin.Forms.Droid are not being displayed on my UWP. Why is that so? I used this…
Jaycee Evangelista
  • 1,107
  • 6
  • 22
  • 52
7
votes
3 answers

How do you put a square in center of screen(using xaml)

I don't understand why this is so hard. Is there no anchor on relativelayout? I want to put square on center of screen. Width of square is 80% of width of screen. Height of square is same with width. so simple. But can't figure out so far using…
Bright Lee
  • 2,306
  • 2
  • 27
  • 55
7
votes
2 answers

MVVMCross: How to bind Xamarin.Android events to ViewModel commands

I am trying to go from an activity to another. I am still learning about MVVMCross so this whole pattern is still very new to me. I am applying it with Xamarin.Android only at the moment. The setup: MainDashboardActivity has an Android Design…
batrand
  • 146
  • 2
  • 14
7
votes
1 answer

Microsoft Authentication Library (MSAL) never returns from AcquireTokenAsync() on Android

I have a Xamarin.Forms iOS/Android app and have to authenticate the user against a Microsoft Azure B2C AD. I have added the Microsoft.Identity.Client NuGet and using this for authentication. It works fine on iOS but on Android the same code never…
7
votes
7 answers

Visual Studio 2015 - Cannot connect to Xamarin Mac Agent - An unexpected error occurred while configuring SSH for the user [MY_USER]

When I try to connect to the Mac Agent I get the following error: An unexpected error occurred while configuring SSH for the user [MY_USER] (full log below) I've tried everything on the Troubleshooting…
Kevin
  • 1,723
  • 2
  • 17
  • 16
7
votes
2 answers

How to create a native UWP view from Xamarin Forms view?

I am trying to create a native UWP view from a Xamarin Forms view. Following the example from here, I managed to do it for Android and IOS. More precisely, on IOS the conversion looks like this: public static UIView…
Mirel Vlad
  • 2,032
  • 3
  • 27
  • 35
7
votes
1 answer

Mono - System.TypeLoadException: Could not load types

After recently upgrading to Xamarin Studio 6 and Mono 4.4.0.182 (running on OSX 10.10.5) we found that our application no longer runs (Asp.NET MVC/Razor website). The solution does compile correctly however. We've tried reverting back to the…
Alex Bunn
  • 390
  • 1
  • 5
  • 19
7
votes
1 answer

Is there possibility to assign a value to Android Button in Xamarin?

I've just started learning about Xamarin Android. I've got few buttons with the same click event handler. private Button flipper1Btn; private Button flipper2Btn; private ViewFlipper flipper; private TextView text; protected override…
Shagohad
  • 365
  • 1
  • 7
  • 23
7
votes
1 answer

Xamarin-ios share & receive audio file

How can I share a audio file from my app to other apps and receive audio files from other apps? I would like a functionality like this: I am unable to attach a audio file. Here is the code snippet: var fileData = NSUrl.FromFilename(path); var…
Arti
  • 2,993
  • 11
  • 68
  • 121
1 2 3
99
100