Questions tagged [xamarin.forms]

Xamarin.Forms is a Microsoft product allowing the building of native, cross-platform apps for Android, iOS, Windows, and others from a single shared C# codebase.

0
votes
0answers
11 views

Xamarin Forms - ListView: IsVisible binding to an invisible item inside a list view is not working after scrolling to show that item

Hello, I'm running into very annoying problem, what I need is simple but I'm getting an unexpected problem, here is what I'm trying to do: I have a listview containing 2 labels in the ViewCell, both ...
0
votes
2answers
17 views

How to translate app name depends on mobile culture in xamarin forms?

I need to translate app name based on mobile culture. i have seen many sample for that, but in most of the samples, only translate the set of language and assign in resource file. But i need to ...
0
votes
1answer
23 views

Xamarin, why can't my if/else statement, retrieving data from Settings.plugin

LastPickName is not empty but it kept picking the else statement... maybe I'm putting it in the wrong area? I have a label text to output what's in LastPickName just to make sure it's not empty or ...
0
votes
1answer
22 views

Calling Async task in button click in xamarin.forms

I have xamarin.forms app contains a listview which will load values from Rest API.Which is working fine.I have button just above the listview.When I click on the button, the listview API call will be ...
0
votes
1answer
10 views

Xamarin.Forms 4.0 Shell TitleView iOS cannot set black background color

I am working for a company that brand guideline requesting title view having black (#000) as background color. I am using Xamarin.Forms 4.0 Shell to build the app. Android is working great but iOS is "...
0
votes
1answer
29 views

Custom nested ListView in Xamarin.Forms

I have to make custom ListView, it should look like this: Header have to have image and text, then should be listed detail rows. My basic datamodel looks public class Workout { public string ...
0
votes
0answers
13 views

Crash when Database.Migrate() is called during startup

I have a Xamarin Forms application which uses Entity Framework Core. When I start and test on the emulator everything is fine. Also when I start on a device which has a previous version running it ...
0
votes
2answers
19 views

Is it possible to use an existing google-services.json file for a new Xamarin.Forms app?

I am in the process of consolidating my iOS and Android apps into one code base using Xamarin.Forms. I am using Firebase to handle remote notifications for the apps in production. I would like to use ...
0
votes
1answer
51 views

Listview doesn't refresh the item view correctly

I'm developing an app with xamarin forms and the MVVM pattern. I have a page with a listview that has three buttons but all the time with only 2 visibles and change the visibility of two of them when ...
-1
votes
0answers
25 views

Can Help me with list of images in Xamarin

I'm trying to show a image in listview in Xamarin, but the image doesn't show. I tried the upgrade and the downgrade in xamarin.forms, but it doesn't work. The version of the xamarin.forms is 4.0.0....
0
votes
0answers
18 views

How should one arrange imported native code items in Xamarin Forms solutions when using binding assemblies

I’ve been working on integrating a vendor’s SDK “ThirdParty” into my Xamarin Forms app “MyApp”. I ran into something with jar/aar binding that I figured out a hack for, but it seems like there should ...
0
votes
0answers
11 views

How to add a switch in Xamarin Shell MenuItem

I want to have a switch in a menuItem of my AppShell.xaml (in addition to the usual text and icon). How can I do that while keeping the styles of the MenuItem ? I used a DataTemplate in the Shell....
0
votes
0answers
21 views

How to join two tables using LINQ xamarin.forms

i am using xamarin forms with ORM EF i want to show data from product and salesOrderItems in data gridView. my problem that the grid is empty.here my code. public SalesOrderDetailsVM(int ...
1
vote
1answer
40 views

Change color of back button in android

Cannot change the color of my back button in android. In ios, is working very well. ((NavigationPage)Application.Current.MainPage).BackgroundColor = (Color)App.Current.Resources["white"]; ((...
0
votes
1answer
17 views

Store secret key in Xamarin Forms

I try to understand how I can store secrets in a xamarin forms project. I have a web api core as a backend and a xamarin forms app as a frontend. I am trying to code facebook authentication with ...
0
votes
3answers
25 views

Xamarin Forms - SelectionChangedCommand not firing for CollectionView

The code below shows a simple example of a CollectionView. I am not receiving the event for the SelectionChangedCommand. Can someone see what I am doing wrong? btw, the complete source for this can ...
0
votes
0answers
27 views

Navigation animation not working on Xamarin Forms

Default Xamarin forms navigation page animation is not working when using master details page I am setting the master page from App.Xaml.cs MainPage = new NavigationPage(new MasterDetailPOS() { }); ...
1
vote
3answers
24 views

Use an Icon Font in Xamarin Forms TabBar

I am just getting started with Xamarin Forms, so please excuse what may well be a rookie question... I started out with a new Shell Forms App in Visual Studio, so some code was generated for me. ...
0
votes
1answer
33 views

How to use openCV in Xamarin?

I am creating a Xamarin project to detect some objects in images . I want to use openCV library , but I can't wrap it to the xamarin . I wrapped it to an windows form application but I can not wrap ...
0
votes
0answers
35 views

App getting crash when i press back button

In my Xamarin.Forms app, When I press back button app is getting crash. In MainActivity.cs, I have overridden as below public override void OnBackPressed() { if (...
-1
votes
0answers
28 views

ListView loading items only when appearing

I have a ListView displaying some handmade ViewCell with Image. The problem is the Image is displayed only when the ViewCell is appearing. Therefore, when scrolling, I can have cells without image, ...
0
votes
0answers
17 views

How to override the parent layout/view opacity for certain elements in xamarin forms?

So I'm trying to develop a custom control which has Opacity of about 0.2, and its an entry, but the problem here is if I set the Opacity of the entry, then the Placeholder or the hint text also gets ...
0
votes
1answer
22 views

MSAL.NET+Xamarin.Forms: build error when adding the latest Microsoft.Identity.Client

I'm trying to add MSAL.NET to an empty Xamarin.Forms project but I'm unable to compile it. After adding a reference to the Microsoft.Identity.Client nuget package on the netstandard 2.0 project (...
0
votes
1answer
25 views

Local Images to Byte in Xamarin.Forms

I want to convert local images which are there in project platform wise to bytes. If I am doing this think byte[] buff = System.IO.File.ReadAllBytes("Sample.png"); I am getting error of file not ...
0
votes
0answers
12 views

Xamarin forms file upload stucks forever

my Xamarin forms file upload code not going to next statement WebClient client = new WebClient(); // add event listeners client.UploadProgressChanged += Client_UploadProgressChanged; client....
0
votes
1answer
18 views

List Items moving or disappearing when scrolled out of screen

I have a Xamarin Forms Application for Android and IOS. When I open one of the larger lists on Android it looks fine when it is loaded. When I now scroll down however and up again on some entries the ...
0
votes
0answers
30 views

ru_RU offline speech recognition

offline recognition doesnt work with ru_RU,but works well with en_US and de_DE. all offline dictionaries downloaded. So how i can make this work with ru_RU!?. xiaomi redmi 3s android 6.0 - api 23 ...
0
votes
0answers
40 views

Custom picker renderer ios crash on done button clicked

I want to create a picker with two wheels on Xamarin Forms. I made it easy on Android but on iOS I'm in trouble. The picker crash when I tapped on the "Done" button or when it loses focus. To ...
0
votes
0answers
25 views

How to center an ImageView in Xamarin.Forms 4.0 Shell.TitleView?

I am using Xamarin.Forms 4.0 with a shell having a flyout at the left. I am trying to display an Image at the center of Shell.TitleView, however, I have no idea how to achieve this correctly. And the ...
0
votes
1answer
32 views

Webview navigation url is wrong in IOS

I have a sample application in Xamarin.form, which use to showing local HTML content in webview. I want to use the navigation event to change the content of webview. It working fine in Android but ...
1
vote
1answer
31 views

Opening all links from iPhone gmail app opens my app

We have the odd situation where the iPhone app we've developed in Xamarin Forms is somehow intercepting all links in the Gmail app's emails, not just the links we intend our app to process. The user ...
0
votes
0answers
30 views

How to set badge counter above the toolbaritem in Xamarin.Forms?

I am creating an application where I need to implement a badge counter above the icon in ToolbarItem. I am creating a dependancy service for IOS and Android. I reference this URL. After implementing ...
0
votes
1answer
25 views

Xamarin Forms: Call Command of ViewModel from DataTemplate

I am stuck on a binding problem here. I created a bindable layout which is inside a control template: <ContentView x:Name="SettingsMenu" ControlTemplate="{StaticResource HeaderTemplate}" ...
0
votes
1answer
27 views

Inconsistent Bouncy Castle ECDSA Signing/Verifying behavior on IOS

The Problem: I expect Signing and Verifying Signatures using the same nuget package on different platforms/systems to behave in a similar fashion. However, Signing and Verifying Signatures using ...
2
votes
1answer
46 views

How to make Android emulator as fast as in Microsoft's videos

As many other videos, this official video from Microsoft and James Montemagno casually demonstrates an Android emulator that runs on Windows without any noticeable lag. It's just fast. To keep the ...
0
votes
0answers
28 views

“{Property} was made unavailable in iOS” in Xamarin.iOS

Several properties, for example in UNMutableNotificationContent, have been flagged with this warning: [PropertyName] was made unavailable in iOS. even though these are supported and no such ...
0
votes
1answer
24 views

Xamarin Forms Asyncronous Socket Communitation example

I am looking for a working sample of a Xamarin Forms Asynchronous Socket communication project. I want BOTH sides of my project (the server and client) to be Xamarin Forms apps and to be able to ...
-2
votes
2answers
76 views

How can i wait an async method to finish and then continue executing an instruction?

I am creating a cross platform app on xamarin.forms. I'm using a plugin to display a popup window. However, it seems like the awaitkey is not working since the execution continues before the task is ...
-2
votes
2answers
46 views

Which Platform should i Choose [on hold]

Currently we have a legacy Application which is Built using Xamarin iOS. Now we want update every component, Web services etc with latest UI, Rest API etc., and at the same time we want to build a ...
0
votes
0answers
16 views

How to fix PDF.JS throwing error “DataCloneError: Failed to execute 'postMessage' on 'Worker'”

I am trying to display a pdf in a custom web view in my xamarin.forms app. The way the program works right now is this: 1. pdf is downloaded into a pdf directory on the phone 2. The pdf.js viewer....
0
votes
4answers
50 views

How can I prevent additional navigation bar on top of MasterDetailPage (Xamarin on Android)

I am creating an application in Xamarin Forms (4.0) for Android (Android 8.1). My main page is a MasterDetailPage where I set the detail page to: this.Detail = new NavigationPage(new SomePage()); ...
0
votes
1answer
37 views

How can I know what i should reload OnResume event in xamarin.forms

I'm working with Xamarin.Forms and I need some help. Regarding the OnResume event, how can I know what I need to reload? I ask this because sometimes everything resumes OK but other times the ...
2
votes
1answer
50 views

Xamarin.Forms iOS transparent ListView heading issue

I'm making a simple listview and got a problem with iOS header - I want to make it transparent, but the problem is, that listview items are sliding under heading. What I want to achieve, is that ...
0
votes
0answers
25 views

When calling MobileServiceClient.LoginAsync got code“:401,”message“:”IDX10205: Issuer validation failed. Issuer: '[PII is hidden]'

I got the following error when I calling MobileServiceClient.LoginAsync. Error Message: {"code":401,"message":"IDX10205: Issuer validation failed. Issuer: '[PII is hidden]'. Did not match: ...
1
vote
1answer
33 views

Handling a “System.Net.Websocket-Exception : The remote party close the connection without completing the close handshake.”?

I can able to chat if I continuously chat. If I leave for a 2-3 mins WebSocket connection close without handshake error message I am getting I don't know how to handle. Can anyone please help how to ...
0
votes
2answers
34 views

Hide TabBar in Xamarin Forms Shell

I wan't to hide the TabBar in a Xamarin Forms Shell 4.0.0.497661 project. I try using: Shell.SetTabBarIsVisible(Shell.Current, false); After the page has loaded and drawed, but it has no effect. ...
0
votes
0answers
25 views

i have used this queries in Sqlite now I'm using Entity Framework Core and convert queries in Entity Framework Core and get same result

This is the Sqlite queries now I'm using dbsets. And I don't know how to implement this query with DbSets var items = App.dbContext._db.QueryAsync<OrdersModel>("select * from [OrdersModel] ...
0
votes
0answers
47 views

Xamarin Forms: Push notification is not receiving to ios device

I have done the following things: Created a project in FCM console and added ios project into it. Downloaded the GoogleService-Info.plist and added it to the xamarin forms ios project directory and ...
0
votes
1answer
42 views

Reference element from a ContentView within the ContentView

Within my ContentView (name=CvProduct) I have a ListView (nam=LvProducts) and several controls within each cells with their specific commands that are accessible in the Page's (name=Products) ...
0
votes
1answer
34 views

Why aren't the items in a Picker (Xamarin.Forms) updated after raising PropertyChanged?

I've set up a Picker so that each item is shown with a random number appended to it (via a converter). I've also added a button that raises the PropertyChanged event on the list, so that the items are ...