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

Is there a way to dismiss Page.DisplayAlert() on background xamarin.forms app?

In regular android you'd save off the dialog and close it on home button pressing. But you're not given a dialog object you can dismiss in Forms. Is there some mechanism to close the dialog after the...

View Article


Object Reference error updating Xamarin.Forms to 1.5.1.6471

Hi All, I'm using NuGet to update my Xamarin.Forms application to 1.5.1.6471 (I'm on a 1.4 version) and am experiencing an object reference not set to instance of an object error when doing so. Has...

View Article


Xamarin.Forms.Entry FontFamily property

I've got a Xamarin.Forms project in which I'm trying to use an Entry and set its FontFamily in XAML. I keep getting a XAML exception about the FontFamily property not existing. I'm working in Xamarin...

View Article

'Random' Crashing of Xamarin form Android App

I am getting a crash of "Unfortunately, App has stopped' at seemingly random times. This seems to happen when navigating away from a form. So I might have Page A, Page B and Page C. A normal user...

View Article

System.Collections.Concurrent

I need to use a thread safe List. I was hoping to use the BlockingCollection in System.Collections.Concurrent but it does not seem to be available in Xamarin Forms PCL (targeting 4.5, iOS, Android...

View Article


Waiting on an event asynchronously

Hi Forms experts, I've seen it's sort of possible to wait on events asynchronously with C# -- https://msdn.microsoft.com/en-us/library/hh873178(v=vs.110).aspx (note that the link is not being...

View Article

Problem in Xamarin.Forms Ios app

Hi Guys, I'm facing problem with Xamarin.Forms Ios App.I'm getting this error. Can any one help to get out of this issue. System.Exception: Could not initialize an instance of the type...

View Article

XF ListView custom renderer

Hi, I am following the sample of Xamarin.Forms Listview custom renderer - https://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/listview/ It is working fine if I bind the...

View Article


PushModalAsync to get username from new page, then PopModalAsync and use that...

Hi, I'm trying to do the following, but the async isn't on the page like I was hoping - it's only on the displaying of the page. var createPlayerPage = new CreatePlayerPage(nPlayerNumber); await...

View Article


What to do when AppContentPage can no longer be found in Xamarin.Forms?

I upgraded to the latest version of Xamarin Studio and now my project won't build and I can't set my iOS app as the startup project. Not even an option anymore. To add insult to injury, AppContentPage...

View Article

ListView Alternating Row Color

Trying to implement that each odd and even row of a listview has a different colors. I tried it with an IValueconverter, but I can't seem to bind it to the ListViewItem. I also read about triggers, but...

View Article

Jump List for Android?

I have followed this awesome article by James Montemagno on how to create a ListView with Grouping Headers and implement a Jump List for iOS. I have been looking online for how I could implement a Jump...

View Article

Has anybody written an AOP Logging Interceptor for a PCL?

I'm looking at adding logging all over my app (for insights), but I really don't want to add all that bloat to the code. A typical method with logging will look like public void SomeMethod() {...

View Article


Xamarin Forms Navigation PushAsync overlaps screen.

Just tossing it out there to see if anyone has experienced this before. Basically, I've got two screens displaying at the same time. The blue is a list view on a page that was pushed on top of the...

View Article

Pass Click/Tap Event Through Levels of RelativeLayout

I'm placing RelativeLayouts on top of each other in the same grid row. The RelativeLayouts are set to FillAndExpand on both the HorizontalOptions and VerticalOptions. I want to be able to place them on...

View Article


MediaPicker showing Splash Screen on Image Select Galaxy S4

I am having a bit of a strange issue. When I used the MediaPicker on an S4, the always displays the splash screen after I have selected an image. I try the same code on an S5 and it doesnt happen. Both...

View Article

DependencyService.Get() best practice?

In all of the examples that I've seen in the documentation dependencies are retrieved (DependencyService.Get()) each time the particular interface is needed. This seems like it could be more processing...

View Article


ZXing BarcodeWriter to Image not displaying

Hello guys, I've been trying to display my barcode in a Content Page but it doesn't seem to be working. I'm using the BarcodeWriter from the ZXing.Net.Mobile Nuget package. The code compiles without...

View Article

Binding to a static property in code, not in xaml

Hi, the following doesn't work: myLbl.SetBinding<ViewModel>(Label.TextProperty, x => ViewModel.StaticVariable); What's the equivalent in code of the xaml x:Static markup extension? Tks. François

View Article

Error after updating to latest Xamarin.Forms

This is the error (Btw, target is Level 23 for android version and target build. level 15 is minimal):...

View Article
Browsing all 79144 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>