Questions tagged [xamarin]

21518 questions
0

votes
0

answer
16

Views

Xamarin - Google Maps keep “showing” Malls

We are using a stylization with the minimum of items to render (without markers, houses, rivers, etc ...) but somehow we can not disable the rendering of Malls. The rendering in the browser works perfectly (does not display the malls): But when we load the JSON in the Device the malls keep appearing...
Igor
1

votes
4

answer
1.1k

Views

Save string locally on device in Xamarin Forms

I want to save a small piece of data from a Xamarin Forms app locally on a device where it can be retrieved later. I don't want to use SQL Lite, App.Config or save it as a file, it's basically just a string. Is this possible, and if so does anyone have an example?
DarkW1nter
1

votes
1

answer
215

Views

Can I combine multiple property in visibility binding with MvvmCross?

I have two Boolean properties in my ViewModel. Can I use combination of both properties to set visibility? Something like local:MvxBind='Visibility Visibility(BoolProperty1 && BoolProperty2)'
ronak
1

votes
2

answer
5.2k

Views

The name “AppClass” does not exist in the namespace “…” when inheriting UWP Application class from another Application-based class

What I want to achieve is just to inherit UWP App class not from Windows.UI.Xaml.Application class, but from some base class, inherited from the 'standard' one. However, when I do it: namespace MyNamespace { sealed partial class App : MyUwpBaseApplication { public App() { this.InitializeComponent();...
Agat
0

votes
0

answer
2

Views

How to upload images from ObservableCollection to WebService?

I'm developing and app with Xamarin.Forms and, one of the requirements of the app is upload images to a WebService. So, I use a ObservableCollection to store/manage the images that user picks, and the problem is that I don't know how can I take all the images to send; If I have to convert to Base64,...
Ferran Muñoz
0

votes
1

answer
10

Views

RecyclerView onCreateViewHolder position background Color

I need to set background color inside onCreateViewHolder. So, when my position % 2 == 0 to set a background Color, else to set another Color. My background color is standar from all of my rows, that's why i thought to use it inside onCreateViewHolder and not onBindViewHolder. Correct me if i am wr...
Dhi
1

votes
0

answer
9

Views

Xamarin.Forms ScrollView adds extra space

My ScrollView adds extra spaces above the first child and under the last on my iPhone X. There is no padding or margin. I gave the ScrollView a blue background to see it's dimensions better. If I remove the ScrollView, the spacing also is gone. Here`s the code I am using .... Is this maybe a bug or...
2

votes
0

answer
7

Views

I cannot set multiple relatives in xamarin

I need to set of my images top off one and another in order to do this I used relative layout what I need is like this menu bar to create in xamarin forms so I used code like this in another page and I include it to where ever I want But it only shows to of them one is Menu setting and all other ar...
ish1104
1

votes
1

answer
58

Views

How to fix blink issue Create Checkbox using image in Xamarin Forms?

This is the CheckBox.xaml This is CheckBox.Xaml.cs . using System; using System.Collections.Generic; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace CheckBoxSample.Controls { /// /// Custom checkbox control /// [XamlCompilation(XamlCompilationOptions.Compile)] public pa...
Akash Limbani
1

votes
2

answer
479

Views

Xamarin Forms content page make background color transparent

I have a requirement where in I need to display a list in a modal popup page.I am able to display a list but I cant make the background color transparent or semi transparent so that the page under it is partially visible. I am pushing the page from my View Model using the folowing: NavigationParamet...
Debasish
1

votes
2

answer
79

Views

Why cannot I attach a file in Android N+?

I'm developing an App that is exporting some HTML tables as attachments. I have noticed that my code doesn't work if I try to attach the html table to Gmail, Google Drive or any E-mail provider in Android N+, but it can upload the file to OneDrive, WhatsApp, Skype, etc. Without any issue. This is my...
Federico Navarrete
0

votes
1

answer
4

Views

How to check Internet Connectivity in xamarin forms shared project

How can I check if Internet is available in Xamarin forms shared project. We can use Cross connectivity plugin in PCL project, can we use the same plugin in shared project as well?
Mars
1

votes
1

answer
837

Views

Xamarin Live Player in Visual Studio 2019

I recently get Visual Studio 2019 preview edition, now I want to use the Xamarin Live Player, but I can't find it anywhere. I know that in previews version of visual studio it was in Tools / Options / Xamarin / Other but now it's not.
SinaMN75
1

votes
3

answer
187

Views

VS2019 + Xamarin.Forms = UWP/EXE dropped?

How do I get the UWP back into Xamarin.Forms Cross-Platform creation to have the templates ready to roll? After picking through the release notes, playing with VS2019's UI and a few hours of web searching, I have only found others posting about the problem in the preview versions. Some say UWP is go...
Juggern Ott
1

votes
1

answer
37

Views

how to reduce the code duplication in my navigation menu

I use a floating navigation menu for my project so I need it in every single page this is my code
ish1104
1

votes
2

answer
22

Views

Google Maps not showing on phone

My Manifest Map showing on emulator in Debug But not showing on phone in Release What could be the reason?
Ksenija Panovskaya
1

votes
2

answer
62

Views

Element not expanding in Xamarin.Forms

Using StartAndExpand or EndAndExpand does not seem to actually expand the elements inside StackLayout. Even though there is more space available as seen in the blue area. Only FillAndExpand works. Here is the code: And here is what I get: Top result is when using FillAndExpand for the child StackLay...
Ghasan
1

votes
3

answer
142

Views

How to write large amount of text to write characteristic

I am writing an Android application with Xamarin.Android, but an answer in native Android would be appreciated as well. In my Android application, I have a BLE Write Characteristic that devices can write to. It works, but I can't send more than 20 bytes, the rest gets cut off. My code to create and...
Darius
0

votes
1

answer
6

Views

Xamarin.Form control to canage Calendar with events?

I was looking for Calendar control can manage Activities(Appointments, PhoneCalls, Tasks) same like FullCalendar. First priority is to use default control is Xamarin provides. If it doesn't consider event management, I can go with third party controls. Note: I am using .NetStandard. So, control must...
Nanji Mange
0

votes
0

answer
3

Views

How can I receive audio and video call by using VidyoConnector (Vidyo.io)?

After generating token, I want to place audio and video call. I start but not receive by other device. I have run app on both android devices. What userId I have to set to receive call . I am using these codes https://github.com/Vidyo/VidyoConnector-xamarin https://github.com/Vidyo/simple-connector-...
Harinder Kaur
1

votes
0

answer
71

Views

Xamarin UI Test on Local Android device not launching app

I’m struggling to get my UI Testing working on Android locally. I’m using the APK which was archived as a release build with no shared runtimes and using the correct ABI apk in my build. return ConfigureApp.Android .EnableLocalScreenshots() .PreferIdeSettings() .ApkFile(ApkPath) .StartApp(Xamari...
Halceyon
0

votes
0

answer
3

Views

MultiDex: Main Dex Capacity Exceeded with MultiDex Enabled

I'm using a package I've included into my project that requires MultiDex, I've got 156561 references so I'll need multiple .dex files. However it fails, citing that the main dex file is too large Some suggested using keepRuntimeAnnotatedClasses false, but I'm using Xamarin and its not clear on how t...
NPC
1

votes
1

answer
1.2k

Views

Set hyperlink inside TextView in C# Android App

I'm beginner. I want to add hyperlink to TextView like this: some_text [hyperlink] some_text.
Aagha
1

votes
2

answer
2.2k

Views

Blank screen on Xamarin

I have a Xamarin portable project. The Xaml pages I debug are totally blank and I cannot see any components on the pages on both Android and IOS. How can I fix this? Note: It gets no error messages, the pages are opening and I cannot see anything on them. The problem occured after this error. When I...
mrbengi
1

votes
1

answer
972

Views

Xamarin Forms Maps - How to get the value of the Zoom and add a listener on it?

I think that everything is in the title, I'm working with a PCL logic Thank in advance !
Emixam23
1

votes
2

answer
741

Views

Xamarin Forms InputTransparent doesn't work on Android

Here is my xaml. InputTransparent is set to true, but Entry still catches the input.
Vorotnyak_Nazar
-1

votes
0

answer
13

Views

How to solve 04-23 12:37:17.041 E/com.companynam(25170): Invalid ID 0x00000000

I have a custom control created in Xamarin Forms Android. The control have no resources or drawable or resource.designer. When used the control in the sample on swiping or on touch getting the below error in the output logs. 04-23 12:37:17.041 E/com.companynam(25170): Invalid ID 0x00000000. 04-23 12...
Paul Anderson
2

votes
1

answer
170

Views

“error”: “InvalidRegistration” while sending push notifications

I am implementing FCM push notifications using FirebasePushNotificationPlugin in Xamarin.Forms. In iOS project, in AppDelegate when RegisteredForRemoteNotifications method calling deviceToken generating but when I am sending notification for generated token by Postman I am getting error. { 'multica...
Arvindraja
1

votes
1

answer
5.4k

Views

How to expand StackLayout inside Grid in Xamarin Forms?

I have Xamarin Forms app. My page bottom should look like this: Currently it looks like this: Problem is that StackLayout doesn't expand to fill space. Here is my xaml: How can I expand StackLayout inside Grid? I would like that blue and red backgrounds touch in the middle.
Uros
1

votes
3

answer
1.6k

Views

replace image using converters in Xamarin.Forms

I am trying to change Image source dynamically based on the data download using Converters in Xamarin.Forms There are total three states of fetching data from the server 1) success when data is downloaded successfully 2) error when data is not downloaded and there is an error 3) when process is idl...
Hunt
1

votes
3

answer
2.4k

Views

Xamarin - Refresh list after PopAsync()

I am writing an application using Xamarin-forms. When I navigate away from my page which edits a list, using popAsync() , I want to refresh a list on the previous page so that my changes are shown. my PopulateMachineSelectionList() adds my machine objects to the list. This is what I've tried so far...
Barney Chambers
1

votes
2

answer
491

Views

how to use parameter in viewmodel ins xamarin.forms

Im trying to pass parameter to viewmodel in Xamarin.Forms.But Also I want to use it while loading the page ,to call a rest service with that parameter.But In load event parameter is null always.(I can see that parameter if I bind it to a label or etc...) How can I make it work properly and use that...
slayer35
1

votes
2

answer
194

Views

How can I specify the referenced multitarget project's platform?

If I have a multi target (netstandard16 and PCL Profile44) project (new SDK style csproj) and I reference this in a Xamarin.iOS/Android project as project reference, how can I specify the referenced platform? The Xamarin project pulls netstandard but I want to use the PCL in this case.
Tóth Tibor
2

votes
0

answer
26

Views

How to stop properties from resetting

On my BaseViewModel I have a static class called OrderService that has a collection of orders and each Order has a collection of IFoodItems. When I call the AddOrder method and pass the order it saves it correctly and the values of the properties on the IFoodItems are correct. When i call my GetOrde...
Tyler Henderson
0

votes
0

answer
7

Views

How to pass a List to a model and later on Binding to Grid

How to get the complete list of players to display on Home Page, below line of code displays a single record var details = (from x in conn.Table() select x).ToList(); Is this problem with my code or Home.xaml ? I have tried playermodel = details[0]; playermodel = details[1]; playermodel = details[2]...
soccerway
1

votes
1

answer
1.7k

Views

Auto resize WebView to fit content

I am working on a Xamarin.Forms PCL project that displays posts in the form of a WebView so I add clickable content such as hashtags. The problem I am having is the WebView doesn't adjust to the size of its content. The WebView does not load an actual site I am binding the HTML to each post in a Lis...
Dan
1

votes
2

answer
224

Views

Read file in Shared Library Xamarin c#

I have saved some .json files in the shared library. I have managed to read just fine in iOS by the code string fileName = $'Files/file_name.json'; var path = Path.Combine(NSBundle.MainBundle.BundlePath, fileName); using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read)) using (var...
1

votes
4

answer
2.4k

Views

change Spinner text color

I want to change the default text color in Spinner to any other color. But I have not find the solution yet. All I got a solution through TextView like How to change spinner text size and text color? Is there any other way, direct way for Spinner? Note: Please provide solution for Xamarin. Thank yo...
musigh
1

votes
2

answer
448

Views

Xamarin Forms - how to display/Bind List in ListView?

I'm creating a cart where i store all of my orders , How to display List in ListView? i tried doing these codes CustomerOrder.cs public class CustomerOrder { public string menuname { get; set; } public string price { get; set; } public string qty { get; set; } public string mcode { get; set; } } pub...
Jeremy Paul
1

votes
2

answer
281

Views

App Certificaion fails with: API FreeAddrInfoEx in ws2_32.dll is not supported for this application type

I created a very simple Xamarin Forms App which uses ZXing.Net.Mobile and HttpClient (the app scans a bar-/QR-code and sends it to a server). This app was successfully released in the App Store and the Play Store, but when uploading it to the Microsoft Store the Certification fails with the followin...
ChrFin

View additional questions