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
1 answer

What's difference Task.Run() , Calling async void AAA() on Xamarin forms?

As far as I know, there are three ways to call async method. (I'm sure there are much more) 1> Task.Run(async () = {...}). 2> Just calling AAA(); and AAA should be looks like async void AAA() { ... } 3> Device.InvokeMainThread(async () =>…
Bright Lee
  • 2,306
  • 2
  • 27
  • 55
7
votes
1 answer

How to draw rich text with Skia or SkiaSharp

I want to draw rich text like iOS's Attributed Text or Xamarin.Forms's FormattedString with SkiaSharp, but I can't find how to. I found the DrawText method, but it's for simple text rendering with one color and one font. No mixed colors and/or fonts…
Masahiko Miyasaka
  • 171
  • 1
  • 1
  • 11
7
votes
2 answers

How do I set values for NSDictionary object in Xamarin?

I need to interface with a function that receives an object of type NSDictionary in Xamarin. First, I don't understand the syntax. What exactly is a NSDictionary type object? I know there is NSDictionary type…
Shay Ohayon
  • 161
  • 2
  • 12
7
votes
4 answers

Xamarin Visual Studio - Unsupported major.minor version 52.0

I am attempting to run a Hello World example from the following tutorial: https://mva.microsoft.com/en-US/training-courses/xamarin-for-absolute-beginners-16182 I am receiving the following error: Severityjava.lang.UnsupportedClassVersionError:…
ollama
  • 157
  • 2
  • 5
7
votes
2 answers

Get path to pictures directory

I try to save an Image (Bitmap/byte[]) with my Xamarin.Android app. I used private string getPathToFile(string fileName) { File dir = new File(Environment.GetExternalStoragePublicDirectory(Environment.DirectoryPictures), "imgen"); …
Freshchris
  • 1,211
  • 4
  • 17
  • 34
7
votes
1 answer

How is it suggested to inherit from an implicit style in Xamarin.Forms XAML?

I am having some issues inheriting from an implicit style defined in an Application ResourceDictionary. I have tried a couple of different approaches, but each has been unsuccessful in one form or another. Attempt 1: Inherit from implicit…
Taylor Buchanan
  • 4,155
  • 1
  • 28
  • 40
7
votes
2 answers

Set custom WebView header in UWP

This could seem to be duplicates of other similar questions but they are old thread and not specific to Windows UWP apps. I'm unable to set custom header in WebView so the loaded URLs in WebView could work for me. I have seen many forums giving…
Vishnu
  • 2,135
  • 2
  • 30
  • 51
7
votes
0 answers

Can't set property in a fragment with multiple instances

I have a main activity that has a ViewPager in it. The ViewPager uses a FragmentPagerAdapter to put the Fragments into the ViewPager. All of the Fragments are a PdfAssetFragment that contains a PDFView (Joan Zapata) and custom view that I wrote…
kformeck
  • 1,703
  • 5
  • 22
  • 43
7
votes
2 answers

Xamarin Android ProGuard Enable

i am working on xamarin application. When i enable "ProGuard" in android properties, while building the application, I'm getting the following error: "java.exe" exited with code1. proguard cfg file has the following: -keep public class * extends…
ravindar
  • 406
  • 4
  • 13
7
votes
2 answers

Detecting tap on label, inside ViewCell, inside ListView

I'm trying to handle something similar (from UI perspective), to: in order to invoke two different business logics for: tapping at ViewCell element itself (inside ListView) - in example navigate to different page tapping at Label element…
Namek
  • 477
  • 1
  • 8
  • 20
7
votes
1 answer

Find if app was built using Xamarin?

Theres is any way to find out if a given Android or iOS app was built using Xamarin?
artificer
  • 253
  • 1
  • 12
7
votes
4 answers

Remote Simulator to Windows option not exists

Remote Simulator to Windows option is not exists in Tools / Options / Xamarin / IOS Settings. Its seen like this : What I have done so far : I have installed the simulator from here that is from this resource. I have already restarted both my PC…
Bengi Besçeli
  • 3,638
  • 12
  • 53
  • 87
7
votes
1 answer

Error CS1926: Error opening Win32 manifest file

I wanted to add new empty class file. Instead, I accidentally added new manifest file. Then removed it and I get error: Error message: \CSC: Error CS1926: Error opening Win32 manifest file -- Could not find file MenuPage.manifest'. (CS1926) How…
user1744582
  • 89
  • 1
  • 7
7
votes
1 answer

Xamarin Forms dynamic list view

I am trying to create a list in xamarin.forms that is a bit complex. The user should be able to click on an item in the list and it should expand into something somewhat bigger. The bigger item should now display some additional UI components that…
why_vincent
  • 2,172
  • 9
  • 33
  • 49
7
votes
2 answers

Floating Action Button Scroll weird behavior

I have a FloatingActionButton that implements a behavior for hiding it when scrolling down, and showing it when scrolling up. However, sometimes when I scroll up, it hides itself and then reappears again. This isn't understandable according to my…
amitairos
  • 2,907
  • 11
  • 50
  • 84
1 2 3
99
100