Newest 'xamarin.forms' Questions - Stack Overflow

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.

-1
votes
0answers
7 views

I want to migrate Xamarin forms PCL to .NET Standard

I have followed these steps. I have added packages references like this <ItemGroup> <PackageReference Include="SQLitePCLRaw.core" Version="1.1.11"/> <PackageReference ...
0
votes
0answers
7 views

How to use html5 video tag in Xamarin.forms based webview?

I am using xamarin.forms webview and have implemented video tag in my html5 code to play video. I test it on IOS and Android. None of both play the video. What I am doing wrong?, I read on some SO ...
0
votes
0answers
13 views

Error on project and redLine on VS on the code where not a mistake. Xamarin

My problem is in start debug. When I build the project it is ok. But when I start debug I have a proble with misstake where is not misstake. It is on method OnCreate(). I get this project from svn ...
-1
votes
0answers
12 views

Could not find android.jar for API Level . Xamarin

When I want to start my project I have a mistake Severity Code Description Project File Line Suppression State Error Could not find android.jar for API Level . This means the ...
0
votes
1answer
23 views

Visual Studio 2017/Xamarin Android Emulator “Object reference not set to instance of an object.” when attempting to test starter program

Visual studio will not start up the Android emulator on generated starter program test. I think I have every library and dependency I would need in order to test the program in an emulated environment,...
-1
votes
2answers
56 views

Xamarin forms create table

I need to create a table, using list view in xamarin forms. I am able to create list view with five columns. But I can't able to give header for the columns and lines. If anyone know how to create the ...
0
votes
0answers
28 views

How can I animate listview's item removal from view model?

How can I create an animation of a ListView's item removal? I am using view model and it should be from view model (I'm guessing here). <ListView ItemsSource="{Binding ObjectivosDoDia}" ...
0
votes
1answer
23 views

How to move scroll programmatically to Scroll View, when the text no longer fits on the screen?

good day, I'm having a problem with a scroll view, I have a label in a horizontal scroll view, that label concateno amounts, the problem is when the text no longer fit on the screen, the scroll does ...
1
vote
1answer
27 views

How to create a Xamarin.Forms custom renderer, where the renderer base class uses generics?

I have a base class, which looks like the following public class DialogSelectionItem<Tobject> : ViewCell Now I want to attach a custom renderer to it: [assembly: ExportRenderer(typeof(SomeApp....
1
vote
1answer
36 views

Xamarin Forms binding - intercepting a bound value and changing it

I have a simple composed custom control that displays text set to a bound ControlText property. In the example below, you can see when the button is clicked the control is updated. How can I change ...
0
votes
0answers
25 views

cannot relaunch the app when we use foreground service using xamarin forms

I am using xamarin forms for my app. I am using foreground service for my app to work on background. I kill the App and when I try to relaunch the App, I can't open the App. Here I am adding My ...
0
votes
1answer
23 views

how to properly implement Microsoft.IdentityModel.Clients.ActiveDirectory in xamarin 4

After install the nuget package Microsoft.IdentityModel.Clients.ActiveDirectory I try to acquire token via string cloud = "https://login.microsoftonline.com/common/oauth2"; ...
0
votes
2answers
28 views

StackLayout GestureRecognizers Effects

I wanted to add some effects to the StackLayout GestureRecognizers so the user know they have selected the button but I don't see a way to do it? I have tried to change the BackgroundColor for the ...
0
votes
2answers
37 views

Databinding doesnt display anything

I am trying to print out observable collection into the listview. It is for custom navigation. It should output 2 buttons with icon and one button should have active element. For some reason I am not ...
0
votes
1answer
31 views

Xamarin Forms I have used SQLite Now I want to use Microsoft.EntityFrameworkCore.Sqlite

I have A project in Xamarin Form and i'm Using Sqlite Database in it and Now i want to convert this Sqlite to Microsoft.EntityFrameworkCore.Sqlite but i i found this Exception. Severity Code ...
0
votes
3answers
30 views

UI Picker item source list should not appear on clicking “ok” in Display Alert

I am working on a Xamarin app, there is a screen where I need to select a url and on selecting, an alert shows : Url changed successfully. On clicking ok, it is displaying the list of all urls which ...
1
vote
0answers
44 views

How to Raise Event Item Clicked of a ListView that exists inside another ListView

I'm creating a Prism Xamarin Form app, in my page I have nested listviews (4 levels), the problem is that I'm not able to raise event when I tap on an item inside second, third and fourth level ...
0
votes
1answer
40 views

Error Message APK Not Installed In Xamarin Form

I am new in Xamarin Forms, And I have created one sample application in vs 2017 community version 15.9.12, All works fine during dubbing and testing, and it run very fine on emulator. But the problem ...
0
votes
1answer
67 views

Xamarin Forms Custom Control binding issue

I have a custom control that I supply a List<string> parameter and it draws a box for each string as a label. Here is a version that is working. Clicking 'Add Tab' adds one tab at a time for ...
0
votes
0answers
36 views

Binding to Binding Locator in XAML does not work

I have a Xamarin Forms Application with MvvmLight using the Service Locator Pattern. The ViewModelServiceLocator itself is a static class with access to a Autofac container with all dependencies ...
0
votes
0answers
23 views

Xamarin Form 4 Shell

I start an new projet with the new Shell from Xamarin Form 4. I try to found a way to control the apparence when a FlyoutItem is disable. On the style with the sample, the BaseStye control the ...
1
vote
1answer
30 views

Xamarin Forms custom control data binding issue

I have a simple custom control that I am having trouble getting an exposed bindable Command property to work. Here's the setup: MainPage.xaml hosts CustomControl.xaml (beige area below). ...
0
votes
0answers
20 views

bindingsgenerator : warning bg8604

I have used visual studio2019, I have created an Android Binding library(Xamarin) solution and add my project aar file inside the Jars folder, then I clean & build the solution. Build successfully ...
3
votes
3answers
43 views

Xamarin.Forms Set video as splash screen

I am working on xamarin.forms shared project. I am facing problem in setting video as splash screen. I got reference from here. The problem I face is video player is initialized and doing its ...
1
vote
0answers
13 views

How to check the accessibility tools is running in XForms UWP

I need to check the accessibility tool (Narrator) is running in the windows platform .I have already tried with the following 1 one is not working and 2 one is also i have tried and it always ...
0
votes
0answers
28 views

Remove FCM notification

I use FCM in my client-server application, and I need to remove the sent notification from the device if it is no longer relevant, for example, if a person has read it already, it needs to be done ...
0
votes
2answers
49 views

How to logout from microsoft in xamarin forms?

I am working on xamarin forms. Where login is through Microsoft using AuthenticationContext. Once I click on login button it will redirect to a Microsoft login page. login is working properly. Once I ...
1
vote
3answers
34 views

Xamarin Forms BACK BUTTON not triggered when a field is focused

When an entry is focused and you hit back, the only thing that happens is unfocus that entry. Hitting again the back button and then it is actually triggered. Just onfocussing the entry by tapping ...
0
votes
2answers
28 views

How to refresh the list view items

I am working on xamarin.forms Listview. Here I have a ListView in view1. The Item for the Listview will be given from View2. I have single ViewModel for View1 and View2. After adding the item details ...
0
votes
3answers
48 views

Xamarin Forms: How to give exact circle background for icons?

I have some icons on my xamarin forms project. I need a circle background for my icon. See the screenshot below: I tried Xam.Plugins.Forms.ImageCircle plugin and tried Framelayout. Imagecircle plugin ...
0
votes
0answers
65 views

Android 9 API 28 ONLY WebView is showing a black pop up in some devices

I have been trying to figure out why one of the pop-ups inside a webview is showing a black screen in some devices. please see attach The URL works as URI but not inside the webview. note: it seems ...
0
votes
1answer
23 views

UWP image scaling with Xamarin Forms

I am creating a iOS, Android, UWP app with Xamarin Forms. I am well versed in how the iOS and Android platforms handle image scaling (1x, 2x, 3x, etc). However, I am not so familiar with UWP. In ...
2
votes
1answer
70 views

Xamarin Forms - How to pass values when Navigating Back to the previous Page?

I have been strugling with passing a simple string back to the previous page from where i navigated initialy after i pressed the back button on the toolbar.. i haven't found anything yet.. what is the ...
0
votes
1answer
23 views

Xamarin: Change value of GridItemLayout in codebehind

<CollectionView Grid.Row="2" Grid.Column="0" x:Name="collectionViewItemsLayout" ItemsSource="{Binding BaseCustomersCards}" ItemTemplate="{StaticResource CustomerCardTemplateSelector}" > ...
-1
votes
0answers
40 views

how to add badge in xamarin forms?

I created a badge in Xamarin.Forms following ToolbarItemBadgeSample I added it in MasterDetailPage, my main page has cart icon in the toolbar. When tapping on the product in mainpage it should ...
0
votes
1answer
23 views

Prism detecting if page is modal programmatically and go back

I am implementing a feature using "connectivity" from essentials that when the app goes "offline" no wifi etc.. it navigates to a specific page. It works in most cases however if I set the phone on "...
0
votes
1answer
18 views

Xamarin Forms Custom GridView Tap and Long Tap Not Working Together

I want to use tap and long tap together with Custom Gridview. Tap is working but long tap not working. it also works when one tap turns off the long tap. Please help me. Thank you. ///////...
0
votes
0answers
40 views

Xamarin Forms and Prism to native view - Navigating from a view in prism project to a view in shared project

My Project: MyAppB (External Shared Project) includes multiple views (xaml files) which extends from ContentPage uses e.g. await Navigation.PushAsync(new Chat()); MyApplicationA (Code Sharing - ....
0
votes
1answer
36 views

How to Create the slideout menu like AKSidemenu in Xamarin

I am new to Xamarin forms. I want to create a slideout menu like AKSidemenu and below screenshot image. Kindly give me an idea for this concept. ...
3
votes
1answer
64 views

How to put different text formatting and hyperlink in a text property

I want to use a syncfusion check box in my xamarin.forms project and the text property should contain a hyperlink on a single word block which should be underlined like this: [ ] By continuing to ...
1
vote
0answers
40 views

Printing a barcode in Xamarin

While this example shows the printing of a simple piece of text, i need to be able to print a barcode that i have the font already, that's the simple bit but how does one send it to the printer that ...
0
votes
1answer
41 views

How to get provider authorities value from an Android manifest file programmatically in Xamarin Forms?

I'm developing an Android with Xamarin.Forms, and I'm using the AndroidManifest.xml file shown below. <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:...
0
votes
0answers
44 views

Prism Behaviors - Using EventToCommandBehavior with a Button

I'm trying to call a method set in my ViewModel using Prism. I bound my EventToCommandBehavior on a Button, but when I click on my button, nothing happens. I've already tested my method, and it works, ...
-5
votes
1answer
50 views

how to make auto reply App in xamarin for whatsapp

how to make auto reply App in xamarin for whatsapp like these app on store https://play.google.com/store/apps/details?id=com.pransuinc.autoreply or https://play.google.com/store/apps/details?id=...
0
votes
1answer
31 views

Xamarin Forms: I can't get the text from Xamarin.Forms.Editor

this is probably something really easy and i feel really stupid for having to ask for help with this but i can seem to get access to a Editors text from the CodeBehind file. I have tried numerous ...
0
votes
1answer
21 views

Navigation.PopAsync with a PushModalAsync?

i'm doing some support to an existing application. it's a really big application, and several pages are using a base controller, this controller works as the name says controller for all the events ...
0
votes
1answer
57 views

How to remember what selection from a picker, Im using xamarin.plugins.settings by montemagno and i don't know how to get the right syntax

the value or string is getting saved but the selection on the picker on the main page itself is not getting saved. when i re open my app the picker is in empty. I don't know the syntax how to use a ...
0
votes
1answer
36 views

Realm 2-way binding in Xamarin Forms UWP throws exception

I am working on Xamarin forms project targeting iOS/Droid/UWP. We are building the app in a reactive manner and use direct model bindings. For instance, let's imagine we have the following code ...
-1
votes
0answers
20 views

How to create exe file in xamarin forms [duplicate]

I have created an application in xamarin forms.Now i want to make exe file to run that application.Can someone suggest me how to create exe file (not appxbundle file).
0
votes
0answers
28 views

If I just have a single icon for my Xamarin Forms Android, do I need to create a splash screen?

I see this in the Xamarin docs. But I also see in the docs that I can do this: [Activity(Label = "Test", MainLauncher = true, Icon = "@mipmap/ic_launcher", Theme = "@style/MainTheme")] public ...