Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Browsing all 91519 articles
Browse latest View live

How to set the background Color in the PCL for the UserDialogs.Toast

Hi: I have the following code, but is not accepting the Color saying: Error CS0433 The type 'Color' exists in both 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04fs9cfb79065' and...

View Article


Zxing.Net.Mobile Forms and MVVM Xaml Not Scanning

New to Xamarin development! Using Visual Studio 2017 and all the latest installs and updates for my dev environment. I have my app "shell" working in that it will run, navigate, crud to local db, and...

View Article


Picker control doesn't open up and highlight the user selected item.

Hey all, I have a picker control that contains a couple hundred items. A user can come in, select an item, and the picker will update it's text, selectedIndex, and selectedItem properties properly. I...

View Article

Problem with Buttons isEnabled binding with converter

I don't now if this is a bug of Xamarin.Forms, CarouselView or my code. I have four content views in my CarouselView. At the moment the views are all one and the same page, different objects of course....

View Article

AVPlayerViewController controls not working

I'm trying to create a custom renderer that will display videos on iOS using native controls. The code below plays the video, but the player controls aren't working right. The controls quickly...

View Article


RequestPermissions does not show dialog

Hi I have been searching for a while now but have not found a solution yet. I need to request the READ_PHONE_STATE permission. I have implemented a device specific implementation of my PCL interface...

View Article

Editor not showing keyboard in Android

Hi, I'm having a strange issue in my Forms application regarding an Editor element. There is one Editor field that doesn't show the soft keyboard when it's selected. For some reason if I...

View Article

Display Tabbed Page in top in Xamarin.iOS

Hello everyone, I need to create the tabbed menu as per Youtube's latest UI to show the menu in top in android and iOS. The android default default behavior is to show menu on top so that's working...

View Article


Non-public API usage _glGetQueryObjectivEXT with no OpenTK.dll in reference

We looked at the bug https://forums.xamarin.com/discussion/82473/itunesstore-the-app-references-non-public-symbols-in-yourapp-glgetqueryobjectivext We went to remove this but there's no reference with...

View Article


How to intercept Navigation Bar Back Button Clicked in Xamarin Forms?

I have a xamarin forms page where the user can update some data in a form. I need to intercept the Navigation Bar Back Button Clicked to warn the user if some data have not been saved.How to do it? I'm...

View Article

unfortunatly app1.android has stopped

I create a new project cross-platform->pcl named App1. I make no change. I can compile all platforms. No problem. Then i start debug. All seems ok. The app seems to appear in the emulator but after...

View Article

Can I have multiple styles in XAML associated with the same Key.

"> I was reading this blog, where the author discusses how to toggle between a light and Dark theme. By using DynamicResource Bindings:...

View Article

RadioButton And DropDown List

In Xamarin.Forms, Which control is used for RadioButton, Group RadioButton And DropDown List?

View Article


Samsung S6 disabled button text disappears

I have a Xamarin.Forms shared project and I have just stumbled upon a weird behavior that is related to Samsung S6 running Android 7. I have not been able to recreate the issue on any other device, no...

View Article

Android, after RemovePage and Navigation.PopAsync() Unhandled Exception...

I got 4 pages in NavigationStack. I try to remove a 3rd page and popasync a last page, to navigate to page 2. Navigation.RemovePage(Navigation.NavigationStack[Navigation.NavigationStack.Count - 2]);...

View Article


Using Xamarin.Auth with Xamarin.Forms

How you can use Xamarin.Auth when you're using Xamarin.Forms? I have this: async public System.Threading.Tasks.Task<bool> LoginWithFacebook (object dialog, string FacebookAppID) { var user = new...

View Article

How to set AntiForgeryToken in app

Hi, I'm actually building an Forms app which uses aspnet core webapi. For authentication I use following code inside the webapi [HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public async Task...

View Article


I need your help for HybridWebView Custom Renderer --> get current url

Hello I need your help. In this code, how can I get to get the current url using System; using Android.Webkit; using Java.Interop; using static Java.Util.ResourceBundle; using Android.App; namespace...

View Article

Xamarin Forms iOS Editor within ViewCell in TableView

My XAML is this: <ViewCell x:Name="EventCell"> <StackLayout x:Name="EventStacklayout" BackgroundColor="Aqua"> <custom:ScrollableEditor x:Name="DetailsEditor" Text="{Binding...

View Article

StaticResource into MarkupExtension

I'm currently trying to use a static resource with an extension for my entry's FontSize property. I have this code piece of code: <?xml version="1.0" encoding="utf-8" ?> <ContentPage...

View Article
Browsing all 91519 articles
Browse latest View live