Most voted "xamarin" questions
Use this tag for questions about the Xamarin platform, which enables you to develop native mobile apps for iOS and Android using C# in Mono or Visual Studio. Ideally a specific framework/product tag should be used, unless the problem is general for all editions.
Learn more…494 questions
Sort by count of
-
0
votes1
answer94
viewsPass a property to a Label on Xamarin
I need to make the label of my code receive the value of a property. <Grid BackgroundColor="Black"> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition>…
-
0
votes1
answer84
viewsTwo Touches on Listview - Xamarim Forms
It is possible to have ONE touch for a certain function (today I have to select an item using ItemTapped) AND TWO TOUCHES OF THE SAME ListView to do another function? I did not get this information…
-
0
votes0
answers67
viewsAccessing Mainview from another class
Hello, here is an excerpt from the code of the main class, in it I basically mount and first "Page" with a menu in the footer (I left only a menu button to not get huge the post) <?xml…
-
0
votes0
answers41
viewsPlugin.Geolocator.Abstractions.IGeolocator.Getpositionasync Indexoutofrangeexception
I’m using Xamarin.Forms and trying to get the position with the Plugin.Geolocator and Getpositionasync method falls into an exception of Indexoutofrangeexception var locator =…
-
0
votes0
answers50
viewsHow to detect that the text has created new lines
Let’s imagine I have a lable and has a text with n characters. Whenever this text does not fit he will put the words in the bottom line. How do I detect that this happened? I tried so internal int…
-
0
votes1
answer41
viewsXamarin Cross-Platform and "Native" Codes
Good morning, I recently started a study on multiplatform development, and now I’m evaluating Xamarin (Visual Studio 2017), but I’m having difficulty with some questions. The main one is the…
-
0
votes0
answers27
viewsHow to separate style sheets using Xamarin Forms
Hello, I am coming from WPF where it is possible to create my style files in separate files and from the same use in my UserControl's the same style settings. I did some (many) searches and found…
-
0
votes1
answer136
viewsXamarin.Forms - Listview only displays if I click on the screen.
Hello, I got a problem. Have my listview, where you bring the information as it should, but this information is only displayed when you click on the screen. If it is not clicked on the screen, the…
-
0
votes2
answers3490
viewsError uploading new version of an apk to google play console
I have an app already published and I want to publish a new version. While uploading apk I’m getting this error: Sending failed The APK or Android App Bundle must be named after package…
-
0
votes0
answers157
viewsModal Loading with Xamarin?
I am creating an application with Xamarin and I want to create a Modal of Loading while doing a search in Webservice. I researched some examples that use Page Modal and others with Popup. Now I’m…
xamarinasked 5 years, 9 months ago FernandoPaiva 1,562 -
0
votes0
answers30
viewsHow to get which viewcell the user clicked on, and pick up a text from a label that is in this same Cell view via commandParameter?
I have the following code in my view <ListView x:Name="MyListView" SeparatorVisibility="None" HasUnevenRows="true" ItemsSource="{Binding Items}" ItemTapped="Handle_ItemTapped"…
-
0
votes2
answers301
viewsSELECT LAST_INSERT_ID() always returns 0
I have the following codes: public async Task EnviaMySQL<T>(string sql,bool pass = false, string file = "SqlJson.php") { if(!pass) Utils.Acoes.Load.ShowLoad(); var result = ""; var lista = new…
-
0
votes1
answer62
viewsXamarin.Android does not update Resource.designer in C# Visual Studio 2019
When I insert a button (for example) into the file Activity Resource.desigenr.cs does not update to add the item Botao and the data (like id for example) so I can’t access it by command…
-
0
votes0
answers20
viewsWenxamarin - Web API
I’m trying to make the code of the Post Api and I’m not able to save the information, since it comes from a relationship between two tables. It is a sales system, where I have two tables, one that…
-
0
votes1
answer81
viewsFirebase IOS token does not work... returns null value
I’m having a problem in an application made in Xamarin, I use Firebase Cloud Messaging to receive Push, but when the code generates the Token it returns null value, someone could help me? THAT IS…
c# ios firebase xamarin firebase-cloud-messagingasked 5 years, 5 months ago Oscar Augusto da Silva 1 -
0
votes1
answer25
viewsHow to change the Translationx property of an element through x:Name?
I have a XAML with the following structure: <swipeview:SwipeCollectionView ItemsSource="{Binding Items}" x:Name="swipeListView"> <swipeview:SwipeCollectionView.ItemTemplate>…
-
0
votes2
answers31
viewsThe use of Pushasync<Tviewmodel> in MVVM allows calling multiple pages. How to avoid this?
I have a Button that triggers a Command whose Action is a Pushasync< Tviewmodel >(). The problem is that if you click the button more than once before opening the new screen, it will open more…
-
-1
votes3
answers248
viewsHow does development work for Xamarin?
If I want to create an app in Xamarin for Ios, I’m obliged to have a Mac? Xamarin creates a folder in the Android project and Ios, and what would be the folder for Windows Phone? Xamarin creates…
-
-1
votes1
answer109
viewsXamarin Visual Studio
Installed Visual Studio with Xamarin, Android SDK, etc. When I compile the project it opens the Android AVD, but the Android System does not load, it is only a black screen.
-
-1
votes2
answers144
viewsDo not show the items in the list after registration
I’m taking a course in Xamarin and I stopped in the following item: I have two view, one to register a description of a food and a calorie value of this food. In the other view appears registered…
-
-1
votes2
answers1585
viewsWhat are the advantages and disadvantages of developing or not with Android Studio?
Using technologies like Xamarin, it is possible, with some changes, to develop the same application for several platforms having a great reuse of code. Already, with Android Studio, it is possible…
-
-1
votes2
answers2782
viewsSend a message via Whatsapp to a specific contact
I’m trying to send a text message via Whatsapp to a previously selected number. The contact chat opens, but the message contained in Extras does not appear in the text box. See: var uri =…
-
-1
votes1
answer28
viewsButton does not appear in the App
I made a button, listview. The listview is working because I started it, but how do I do with button? Below my code: protected override async void OnAppearing() { base.OnAppearing();…
-
-1
votes1
answer375
viewsExit Button Message - Xamarin Forms
I need a message on the Exit Button (I will use the Navigation.PopAsync()) next to what I did but that works (this one doesn’t work): //Botão Sair void BtnSair_Clicked(object sender, EventArgs e) {…
-
-1
votes1
answer459
viewsExternal connection to sql server by android application, C# xamarim
Good I am in search of information regarding which procedure to access a sql server database by android.
-
-1
votes2
answers115
viewsCreating and Consuming a REST API
Good morning, I’m trying to create an API, to do a user and password validation, to use in Xamarin. But I am in doubt, if I want to search a user x and a password x in the database I should, pass…
-
-1
votes1
answer201
viewsExtension method(Wait() and Status()) does not work
This is not working(just the Wait() and Status lines()) try { string url = $"http://localhost:2710/api/faturamento/{IdUsuario}/{IdGaragem}"; var uri = string.Format(url); var response = await…
-
-1
votes1
answer36
viewsListview loads items therefore without text
Listview loads items (including for possible editing), but without the item text: […
-
-1
votes1
answer69
viewsApp Xamarin showing an hour in advance
Here in the company we have an application to beat point, in this application is shown the current time on the screen. Ex: viewModel.HoraAtual = DateTime.Now.ToString("HH:mm:ss"); It is always…
-
-1
votes1
answer18
viewsConfigure "Build Action: Embeddedresource" - Adding font
How do I set up "Build Action: Embeddedresource"? I saw that this option is available by right-clicking the project in the Solution Manager. But this in Visual Studio 2019, the current version does…
-
-1
votes1
answer117
viewsLoad image dynamically into a grid?
I have this shampoo: <StackLayout Spacing="10" Padding="10" VerticalOptions="Center" Grid.Row="3" Grid.Column="1" > <Image x:Name="MyImage" Source="{local:ImageResource…
-
-1
votes1
answer250
viewsReplacing the csproj is a problem?
For the second time, man .csproj.user was detonated. I don’t know why this has happened or what can influence this file. Well, this is a new project I did, using the .Net Standard. When I open the…
-
-1
votes0
answers6
viewsHow to perform tasks with closed app (without being terminated) on android Xamarin
I’d like to sync with the bank to show notifications to users, but everything I encounter is with the app minimized, I need you to segment with the app closed, IN BACKGROUND
-
-1
votes1
answer58
viewsproblems in debugging with Xamarin
I’m a beginner in the world of programming and recently met Xamarin and decided to learn a little about him. When emulating the apps I searched how I could debug (or debug, I’m not sure what the…
-
-1
votes0
answers8
viewsHow to open a resource entered in Xamarin Forms
I am trying to open a file . shp which is inserted in a folder(Sampledata) within the project, however returns the Exception >>> System.IO.Ioexception: 'The file specified does not exist.'…
-
-2
votes1
answer11
viewserror resolvelivraryimports in Xamarin visual studio 2015
I am new in the stack, I was developing my application good and practically out of nowhere, I get an error when deploying in my project . Droid in Xamarin. the error is described as…
-
-2
votes1
answer124
viewsMy Listview does not show content
Label text on the ListView, I’ve already used the StackLayout and nothing, what could be?…
-
-2
votes3
answers97
viewsNavigation.Popasync() does not work when used as an option to exit the application
I have a one-screen app, a "Contentpage". I can’t get out of the app with "Popasync()". I’m debugging on a Samsung J6 device. // página instanciada MainPage = new NavigationPage(new Inicio()); //…
-
-2
votes1
answer58
viewsI can’t build the iOS app for publication
When I try to build my App(IOS), it says it doesn’t have Provisioning Profile. I did all the step-by-step in the Apple Store, like > Appid(Profile), Certificate(Development and Production), and…
-
-2
votes1
answer602
viewsHow to format a label using Stringformat in Xamarin Forms
I am creating a solution where I must display a whole in one <Label />. To do this I’m using the code below: public partial class Home : ContentPage { public Home() { InitializeComponent();…
-
-3
votes1
answer181
viewsWhat is it, Xamarin?
It seems that Xamarin is very new. They say that you can develop android or IOS or Windows Phone by C#. That’s right ? For those who are starting now, it’s worth it or not ?
xamarinasked 7 years, 3 months ago Matheus Miranda 5,375 -
-3
votes1
answer85
viewsIs there the possibility of creating a popup and inside it a textbox to type something?
Is it possible to create a popup and put something to be typed and two buttons, Cancel and OK? There is this possibility?
-
-4
votes1
answer91
viewsdesectuate Json object
Guys I’m not getting to realize this object, public class itensjsonPai { public string resource { get; set; } public List<transaction> transaction { get; set; } } public class itensjsonfilho {…
-
-5
votes2
answers189
viewsXamarin installation on Windows 7
I would like to install the Xamarin tool for mobile development. My operating system is Windows 7. It is possible to install this tool on Windows 7 or only on 10 or higher versions of Windows?…