Microsoft Q&A

Xamarin

4,813 questions

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.

Browse all .NET tags

4,813 questions with Xamarin tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

PopModalAsync not working in iOs

due to the limited control layout capabilities in ios via xamarin forms, i'm forced to use a modal form to to a some data entry, however I'm unable to remove the modal form Page as PopAsync fades the close button rather than than removing the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-09T14:28:06.737+00:00
Jerome Mx 21 Reputation points
commented 2023-01-23T15:15:43.94+00:00
Jerome Mx 21 Reputation points
0 answers

SevenZipSharp library not working on Xamarin forms

We are working on a Xamarin project that needs to split a large file into smaller files with specified file sizes. we tried to use the SeveZipSharp library by installing the squid-box-sevenzipsharp NuGet package which supports xamarin forms for…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-20T03:55:05.4533333+00:00
Aneetha 0 Reputation points
commented 2023-01-23T01:06:27.66+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
0 answers

The quality of the image rendered using RenderTargetBitmap.RenderAsync is poor on consecutive conversion

Hi, I am trying to convert the convert the Xamarin.Forms.Image to image in UWP using RenderTargetBitmap.RenderAsync API. The quality of the converted image is reduced. On consecutive conversion i.e., adding the converted image back to the page and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
Universal Windows Platform (UWP)
asked 2023-01-17T13:55:23.8833333+00:00
Imman Kumar 6 Reputation points
edited the question 2023-01-20T11:34:30.75+00:00
Imman Kumar 6 Reputation points
0 answers

When Xamarin Forms will support Google's Health Connect API?

Hi In the fall 2022 Google released new API for integrating health apps (ex. Google Fit). In the same time they marked their previous API as deprecated. Consequently, it is not wise to implement the integration the old way but on the other hand there is…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-19T08:54:12.1+00:00
Piotr G 0 Reputation points
commented 2023-01-20T03:18:55.6466667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,741 Reputation points Microsoft Employee
5 answers

Xamarin.Forms Migration From Android 11 to Android 12

I'm trying to publish my new version app on Google Play but the process failed because I have to upgrade Target API Version to version 30. I update API version but now my app doesn't startup: Android application is running (debug is disabled in…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2022-12-12T22:49:41.437+00:00
Alessio Camaroto 81 Reputation points
answered 2023-01-19T19:12:16.1933333+00:00
omar abdelsalm 0 Reputation points
0 answers

ASMX web service client .NET 6 (Android) Deserialization error with net6.0-android31.0 TFM

I'm running into a Web Service deserialization issue in a Xamarin .NET 6 Android project. My Visual Studio Version is: Version 17.3.0 Preview 5.0 Here is my csproj file: <Project Sdk="Microsoft.NET.Sdk"> …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2022-07-31T01:14:07.37+00:00
Adolfo 1 Reputation point
commented 2023-01-18T21:26:21.8866667+00:00
Stephen Burns 0 Reputation points
1 answer

Xamarin MVVM Android - Method getting called multiple times

I'm using Xamarin with MVVM and i have a CollectionView of Products and a checkbox. I have a list of Products implementing INotifyPropertyChanged. By using EventToCommandBehavior i call a Command when a checkbox is checked, binding the object as a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,983 questions
asked 2023-01-18T14:53:09.0433333+00:00
rfrk 0 Reputation points
answered 2023-01-18T15:20:48.2466667+00:00
Michael Taylor 37,946 Reputation points
1 answer One of the answers was accepted by the question author.

Xamarin distance between 2 location in km ?

Hello, I would like to know, how to have the distance in km between two location (lat / long) For to do that, i used the method distance to and after I divide by 1000 .. But, if i take two location on google maps , obtain lat long and try with this…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-17T13:18:20.6266667+00:00
cristopheB 476 Reputation points
commented 2023-01-18T11:01:53.2266667+00:00
cristopheB 476 Reputation points
2 answers One of the answers was accepted by the question author.

Xamarin Forms: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

I am getting the below error for my xamarin forms application on version 31 and above. com.mycompanyname.myappname: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2022-12-25T18:39:29.087+00:00
Sreejith Sreenivasan 61 Reputation points
answered 2023-01-18T08:01:43.1466667+00:00
Lakshmi Jayanna 0 Reputation points
8 answers One of the answers was accepted by the question author.

Visual Studio Mac configuration iPhone Simulator is gone

visual studio mac 8.9.1 configuration iphone simulator is gone, it was there last week. Running xcode 12.4, simulator 14.2 is installed. How to get back debugging ios-app on simulator?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2021-03-10T14:34:51.577+00:00
Tom Flemming 101 Reputation points
commented 2023-01-17T16:25:53.4933333+00:00
0 answers

Predictive keyboard not working on Xamarin.Android Edit Text API

Hi Team, While developing Xamarin.Android application I was able to find a bug that restricts the predictive text functionality on EditText API([https://learn.microsoft.com/en-us/xamarin/android/user-interface/controls/edit-text) in the Samsung…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-13T11:25:55.6333333+00:00
Manoj Kumar 21 Reputation points
commented 2023-01-16T08:13:22.85+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,216 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Change button style when disabled by command's canexecute method

I'm developing an app that basically has black and white style. I have a button with a command binding (it has "canexecute" method to enable and disable the button). This is the XAML of the button: <Button Margin="0,60,0,0"…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2021-09-17T08:27:38.25+00:00
Jalza 731 Reputation points
commented 2023-01-16T06:04:58.39+00:00
0 answers

Human verification

I am trying to verify that the user is a human and not a bot. I've tried to scrounge for information on cross platform use of reCAPTCHA, but can't find anything that works for my application. Are there any ways to do human verification? For context,…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2020-12-16T21:26:10.413+00:00
commented 2023-01-15T14:02:48.9233333+00:00
Hahahahahaha 0 Reputation points
1 answer One of the answers was accepted by the question author.

Xamarin Frame color not updating in ListItem

I have a ListItem with a Frame inside. In that Frame is a Grid with some labels. The Frame uses Binding to set the color. When the list is created in this ListItem, using an Observable Collection, the color is set properly to the frame using this Binding…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-08T18:07:17.843+00:00
Ganesh Gebhard 366 Reputation points
accepted 2023-01-13T18:42:37.9233333+00:00
Ganesh Gebhard 366 Reputation points
2 answers

How to use Admob in Xamarin in 2023?

How to use Admob on Android Apps in Xamarin Forms? i followed this tutorial but it does not work in 2023. i found this link in chatGPT but it's doesn't exist : https://learn.microsoft.com/en-us/xamarin/android/platform/ads-monetization/admob/

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-10T20:38:39.9+00:00
N1ko 1 Reputation point
commented 2023-01-13T08:26:55.16+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,216 Reputation points Microsoft Employee
1 answer

Is there a way to show 360 panorama images in Xamarin Forms

Hi, I'm looking for a way to show 360 panorama images in my app, I don't need anything fancy with gyro and so, just a plain viewer like this one: [https://pannellum.org/documentation/examples/simple-example/ Anyone done something like that?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-12T10:55:49.79+00:00
Magnus Wallon 0 Reputation points
answered 2023-01-13T06:21:21.99+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,216 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Android.Views.InflateException Binary XML file line #1 in layout/toolbar: Error inflating class androidx.appcompat.widget.Toolbar

In a xamarin.forms android project, MainActivity.cs contains: [Activity (Label = "Almicantarat", Theme = "@style/MainTheme", Icon = "@drawable/almicantarat_launcher", MainLauncher = true, …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2021-09-24T14:54:18.663+00:00
pierre-louis deschamps 146 Reputation points
edited a comment 2023-01-12T14:14:26.5033333+00:00
Luca Ziegler 1 Reputation point
1 answer One of the answers was accepted by the question author.

UIPickerView: Is it possible to show the previous selected value in the UIPicker view?

For ex: scrolled the pickervirew and selected "2" from the list and on opening the picker for the second time the values in the picker view should show as "2". In PickerView Delegate: "Selected" delegate function is…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-09T08:34:17.153+00:00
K, Eswara Prabu 41 Reputation points
commented 2023-01-12T04:14:15.5366667+00:00
K, Eswara Prabu 41 Reputation points
1 answer

Navigation Using ViewPager2 Without Fragments

I am attempting to use a ViewPager2 to allow the user to navigate between screens by swiping. Each screen is an XML Layout that is included using an include tag for which I set the visibility. I know how to use ViewPager2 for collections, but I simply…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-01-08T03:20:40.76+00:00
Nathan Sokalski 3,976 Reputation points
edited an answer 2023-01-12T01:22:31.98+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

Xamarin Forms ToolBarItem icon tint color on Android

Hi, How can I change ToolBarItem icon tint colour on Android? On iOS it's white, but shows black on Android. For example in below code: <ContentPage.ToolbarItems> <ToolbarItem IconImageSource="deleteitem.png"/> <ToolbarItem…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2021-06-24T06:58:49.323+00:00
EJ 361 Reputation points
answered 2023-01-11T11:09:24.1533333+00:00
Luiz Eduardo Goebel 0 Reputation points