Click here to Skip to main content
15,888,610 members
Everything / Mobile Apps / Xamarin

Xamarin

Xamarin

Great Reads

by Daniel Vaughan
Create best-in-breed cross-platform MVVM apps using Calcium for Xamarin.Forms.
by Marcelo Ricardo de Oliveira
An entertainment app written in C# language for the Xamarin Forms and Android, using a SQLite local database
by Daniel Vaughan
Create a Xamarin Forms tabbed page or carousel page by binding to a collection of ViewModels; extending beyond the current capabilities of Xamarin Forms.
by n.podbielski
Use of IoC container in Xamarin on example of TinyIoC

Latest Articles

by Chandru BK
This article will assume you have basic knowledge of C# and Xamarin Forms and shows how to implement the Xamarin Form Validations using simple Data Annotations applied on the models.
by Zijian
A series of articles comparing programmer experiences of Angular, Aurelia, React, Vue, Xamarin and MAUI
by Zijian
A series of articles comparing programmer experiences of Angular, Aurelia, React, Vue, Xamarin and MAUI
by Zijian
Use PowerShell scripts to generate icons of native mobile apps

All Articles

Sort by Updated

Xamarin 

9 Feb 2024 by Chandru BK
This article will assume you have basic knowledge of C# and Xamarin Forms and shows how to implement the Xamarin Form Validations using simple Data Annotations applied on the models.
3 Feb 2024 by Graeme_Grant
Why Xamarin forms? It's discontinued and support will end on May 1, 2024. ref: Xamarin official support policy | .NET[^] You are best to move to .Net MAUI, the replacement for Xamarin Forms. - Build your first .NET MAUI app - .NET MAUI |...
3 Feb 2024 by Member 13379347
Need help with an advanced feature development in xamarin forms. I am developing a mobile application in xamarin forms. In the app, user can securely save his personal info like first name, last name, address etc. in securestorage. Now, if user...
22 Jan 2024 by Pete O'Hanlon
So, you might want to write something like this:long runningTotal = 0; while (rd.Read()) { string sati = string.Empty; if (!rd.IsDBNull(rd.GetOrdinal("SATI")) { int satiVal = rd.GetInt32(rd.GetOrdinal("SATI")); runningTotal +=...
21 Jan 2024 by Stylus STYLUS
Need to sum last column SATI What I have tried: while (rd.Read()) { usersNB.Add(new userNB { //my sql Vrijeme = rd.IsDBNull(rd.GetOrdinal("VRIJEME")) ? string.Empty : rd.GetString(rd.GetOrdinal("VRIJEME")), ...
8 Dec 2023 by Zijian
A series of articles comparing programmer experiences of Angular, Aurelia, React, Vue, Xamarin and MAUI
20 Nov 2023 by Dave Kreskowiak
You don't listen much, do you? As stated in your other copy of this same question, for a Xamarin app, you should NOT be connecting directly to a database engine. You SHOULD be calling a web service that sits in front of your SQL Server where the...
19 Nov 2023 by Stylus STYLUS
I have two online database for test mobile app 1) MYSQL (work from workbench and from xamarin app) 2) MS SQL (work from ssms, not work from app) Both database are online and try to connect online from another network and mobile device Error is:...
18 Nov 2023 by Zijian
A series of articles comparing programmer experiences of Angular, Aurelia, React, Vue, Xamarin and MAUI
13 Nov 2023 by Zijian
Use PowerShell scripts to generate icons of native mobile apps
5 Nov 2023 by Stylus STYLUS
I have simple Xamarin code to bind data from online db. Labels are shown. Between labels are empty. No data. Database connection is ok. Some help? What I have tried: MainPage XML CS using System; using System.Collections.Generic; using...
15 Oct 2023 by M Imran Ansari
In Xamarin, especially for Android development, the usage of System.Web.Services and System.Web.Services.Protocols is not supported. These namespaces are typically used in traditional .NET web applications and not in the context of mobile...
15 Oct 2023 by kvladan
In my android xamarin app which I geeried in VS 2022 the following references will not work System.Web.Services System.Web.Services.Protocols References are installed without problems, but an error appears Cs0234 :The type or namespace...
8 Sep 2023 by Stylus STYLUS
I create app and all work fine. Need to replace string instead of local database to be cloud database Data in table database is the same. New string is: Data Source=94.251.1.1,1433;Initial Catalog="BCC";User ID=admin;Password=admin What I...
8 Sep 2023 by CHill60
It's not clear at all why you are having a problem - if you could type in the original connection string then you can overtype it with your new one. Perhaps one of these resources will help you Google for Xamarin edit connection string[^]
7 Sep 2023 by Richard MacCutchan
Statements such as: DependencyService.Get().UpdateEmployee(employeeDetails); are a bad idea. If the Get call fails for any reason then a NullPointerException will follow. And since your code is not catching exceptions you will likely...
7 Sep 2023 by OriginalGriff
We can't tell: we have no idea what your code is doing, and no way to access it. So start by looking at the SaveEmployee method, and use the debugger to find out what exactly it is doing. At a guess, it's your connections string, or the SQL...
28 Aug 2023 by Member 16080862
Having issue of select object in the tree view
11 May 2023 by faizy001
Hi I have one class and inside the class I have two lists and I want to send class object to post API What I have tried: public string AuthoryOfCertificate { get; set; } public TimeSpan EstManHour { get; set; } public string DefectDamage {...
11 May 2023 by Richard Deeming
At a guess, the problem is that you're storing the materials and tools lists in local variables, rather than in the properties on your obj instance: obj.mmaterial = DependencyService.Get().GetMyMaterials(); obj.ttools =...
26 Apr 2023 by Patrick Skelton
I have a Xamarin.Forms application that has a requirement that I would have thought straightforward for the new Shell but is causing no end of problems. I have some 'top-level' pages that can be freely navigated between using a TabBar. One of...
20 Apr 2023 by DoingWork
Dear All I am new in Xamarin.Android A device is connected to My Android smart phone using OTG function. I want to access it via Serial port by Xamarin c# (Visual Studio 2017). Please guide me. Thanks in Advance for your help What I have tried: I have read topics on UsbManager, UsbDevice and...
20 Apr 2023 by faizy001
Need Help please give me full solution i am creating a Xamarin Form Page and there is Picker Control in my page . i want to display a list in picker.and data is coming from the API. after that i am trying to Bind API Data with my Picker Control...
14 Apr 2023 by Luis M. Rojas
Hello, I know there are at lot information about this item, but any of them work for me(maybe, or not maybe, i am doing something wrong): This is the WEB API and the code to avoid the error [HttpPost] [DisableRequestSizeLimit] ...
12 Apr 2023 by faizy001
hi i am using list view and picker in xamarin forms i Data is coming from the API and i have Bound with listview control and picker control. this problem is that. inside the listview values are coming properly but in picker only one and same...
6 Apr 2023 by Luis M. Rojas
Hello, I am using Xamarin Form,Emulator Andorid 11.0 API 30 This is my sentence to access the API string url = "https://192.168.199.91:7254/api/GetData/postTransacciones/"; From Swagger: I can run it and it works, but when i use xamarin i...
6 Apr 2023 by mtoha
Hi As far as I know, emulator does not know localhost. You should run and tunnel your server app, using ngrok or similar app. Follow this link, I think this [^] the link is similar with your case.
4 Apr 2023 by Member 15627495
as you want to get the name.extension of the string you have : Path.GetFileName Method (System.IO) | Microsoft Learn[^] var filename = path.getfilename(formFile) // to break the big string and get the filename and extension only
4 Apr 2023 by Luis M. Rojas
Hello, I am using XAMARIN FORM. I Can read the file after take the picture. I can see the file.FileName But no parameters is passed to the WEB API. I am completly lost, i really do not know whey private async void TakePhoto_Clicked(object sender,...
30 Mar 2023 by Luis M. Rojas
Hello, I am new in Xamarin, I am using VS studio 2022, my APP take a picture in the emulator and then i need to copy the image, my problem is: Where does the image is storage in the EMULATOR? It will be different in production? This is my C#...
23 Mar 2023 by faizy001
i want to create a app where i can create a money wallet, QR code for payment. how to create please give me some link for reading What I have tried: i want to create a app where i can create a money wallet, QR code for payment. how to create...
23 Mar 2023 by Richard MacCutchan
https://developer.paypal.com/h...
23 Mar 2023 by Dave Kreskowiak
There isn't going to be any one or two links to read to do this. If you don't know how to do this before you even start, you're not ready to take on such a project. I'm serious here. If you don't know THE LEGAL RAMIFICATIONS OF GETTING IT WRONG,...
23 Mar 2023 by OriginalGriff
A couple of things before you start ... 1) Never, ever, accept code from a insecure website to handle anything to do with real money. You do not know who is giving you the code, you do not know what it does, you do not know that it places the...
17 Mar 2023 by Luis M. Rojas
Was easy: var name=photo.OriginalFilename;
17 Mar 2023 by Luis M. Rojas
Hello everybody, I am new in xamarin form, I know how to take a picture, but: How do i get the name o named it in order to save it? What I have tried: I tried microsoft doc, web info
14 Mar 2023 by faizy001
Hi i need one help i have one class which is ToolListClass.cs inside the ToolListclass two more classes which one is ResultTool.cs and AIRNRCToolList.cs in xamarin i am using a listview and i want to display these class data in listview ....
1 Mar 2023 by faizy001
Hi friend i have a object for the list var objlist = JsonConvert.DeserializeObject(Result); which is coming from the API and i want to display into a ListView. if single item of a list is coming properly but i...
1 Mar 2023 by OriginalGriff
Use teh collection as the DataSource for a data-aware grid based control - the Xamarin.Forms Grid - Xamarin | Microsoft Learn[^] for example.
28 Feb 2023 by faizy001
Hi i am using post API to send the data from the API my problem is that i have data from json forms which is coming from the API. after that when i am using JsonConvert.DeserializeObject>(Result); and saving...
28 Feb 2023 by Richard Deeming
The JSON you've shown is a single object; you can't deserialize that into a list. Pasting your JSON into quicktype[^] will give you an idea of the classes you need to use: public partial class Root { [JsonProperty("Token")] public...
19 Feb 2023 by faizy001
Hi I am creating Insert,Update,Delete and Select in Xamarin forms.program are working fine but when i run two or three times so it is throwing exception error. 1 i have created Helper Class for writing insert update and delete methods 2 inside...
19 Feb 2023 by OriginalGriff
We can't help - we have no access to the whole of your code and any data it is using while it runs, and no idea what exactly you do to duplicate the problem. So, it's going to be up to you. Fortunately, you have a tool available to you which...
17 Feb 2023 by ThommyaVV
As I looked for more information to write in my question I noticed the IMvxNavigationService function was never run through, this code: private readonly IMvxNavigationService _navigationService; public...
14 Feb 2023 by Ins App
Hello to all The Xamarin app runs smoothly on Android 10. When transferred to Android 11 and Lenovo Tablet, on talking photos gives error phone available memory is not enough.Temporarily cannot take pictures But it has 128 GB free .Restart is...
14 Feb 2023 by Ins App
Well I used another Tablet with android 12 and it works ok. So it seems that it was a tablet (Lenovo) specific problem
7 Feb 2023 by faizy001
Hi i am working a LocalDb Application in Xamarin Form. My Requirement is to save Data Locally using SQLite DB. i have created successfully Save interface and method. Data is coming from the xamarin forms successfully but only one data is storing...
7 Feb 2023 by Richard MacCutchan
According to the code you have posted, obj is not a list but a simple object. If you mean that you want to save each member of the object into a separate field of the database, then you need to redesign your table to accomodate all the different...
21 Jan 2023 by Dev Leader
Jumpstart app with Autofac
14 Jan 2023 by flowtowin
I have 2 goals : 1. scheduled notification for example every salesman everyday at 10.00 will receive notification their target achievement, which the messages must be different among them. 2. unscheduled notification for example user A changes...
14 Jan 2023 by Mohammad Reza Valadkhani
Based on your question, it depends on your application structure. For the first part, sales man target achievement notification, is related to their goals that they have achieved, I assumed that it must be sent from server side so you need push...
11 Jan 2023 by Ins App
And i have tested the default camera alone. It produces the above memory problem. It looks like a bug at camera android 12
11 Jan 2023 by Ins App
I have a xamarin app that uses xam.media (jamesmontemagno/MediaPlugin) for photos. In android 10 i was using Open Camera,(user was asked about the camera app he wants). But in Android 12 this is gone. The problem is that default camera, after...
30 Dec 2022 by Sandeep Mewara
I recall my colleague facing a similar problem. It was related to general usage of the image for display. She then used a third party opensource to display the image that optimized it. Believe it was FFImageLoading - GitHub -...