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

Use a iOS Imageset inside a XAML view file (PCL-Project)

Hello, I am trying to use in the iOS-Project instead of a normal BundleResource PNG-file a Imageset with more resolutions. In the moment I have a PCL-Project as shared platform between Android and iOS....

View Article


System.ArgumentException: 'jobject' must not be IntPtr.Zero

Suddenly this is all I'm getting. I've narrowed it to a navigation call, whenever I call App.Current.MainPage = somePage;, or returning from background. I was in heavy development and navigation was...

View Article


OnScroll event in ScrollView

Anyone know if there is a way to hook into the scroll event in ScrollViews? I want to add infinite scroll to a ListView, but without any way of knowing when the user reaches, or getting closer to, the...

View Article

MasterDetailPage inside NavigationPage not showing Hamburger Icon

When I deploy my Forms application on Android, I see the Hamburger menù correctly, but when I deploy on iOS I cannot see the hamburgher menù image. The image is in the "resources" folder with...

View Article

How to identify largest font size for a label, to fit in a specified amount...

I need to fit a Label in the space available to the left of other controls, after those other controls have been positioned. On a phone in portrait mode, there isn't much space available, so I need to...

View Article


How to add checkbox control in XAML

Hi, I want to add Checkbox control in Xaml page. I added below code in .Xaml page. <CheckBox Margin="10, 10, 3, 3" Name="acceptPolicy" Content = "Accept our policy" FontSize="12"...

View Article

Json Web Tokens

Hello everyone, I'm searching around the net how I could decode a JWT token to fetch the expiration date in C#. Only I couldn't find many solutions / examples for Xamarin. I tried adding...

View Article

Async ImageSource in SetBinding

Hi, I have a ListView that is bind to an ObservableCollection. Each item in the list has property "Path" with a url for an image. I've already set the bindings through the DataTemplate. Is there a way...

View Article


Unhandled exception occured while using DatePicker in Xamarin.Forms.ContentPage.

Hi, I am trying to use datepicker control in in an application using Xamarin.Forms, but getting an error. The first time the activity is started, date picker work just fine ... however, whenwe close...

View Article


Done button not firing completed event on Entry

I have used the Xamarin example of adding a Done button to a numeric keyboard however this is not firing the Entry Completed event. I can see that the delegate is being executed when the done button is...

View Article

How are we to do global exception handling in Xamarin.Forms?

I've found the AdvancedLifecycleDemos for Android, and I'm thinking of converting it to some sort of cross platform implementation, but I'm wondering if someone has already done this? I haven't found...

View Article

forms app device.openuri system exception in ios

Hi, I want to open a browser in iOS with my app with this line of code: Device.openUri(new Uri("http://www.google.com")); but when that line executes I get this error: Could not initialize an instance...

View Article

Bindable Command-Property on ListViewItem?

Hi, is it possible to make a ListViewItem call a ICommand (including CommandParameter) on tap? Actually / AFAIK, this is only possible via AttachedProperties (which basically doesn't do anything else...

View Article


How can i validate Entry control as required in xamarin.forms ?

Hello, How can i validate Entry control as required in xamarin.forms ? Already i have tried xamarin.behaviors. but didn't worked.... anyone can assist me ?

View Article

Webview broken

I have a webview that is bound to an HTML snippet snippet: <h1>Hello World!</h1> <WebView> <WebView.Source> <HtmlWebViewSource Html="{Binding Html}" />...

View Article


AddSubview and Custom PageRenderer in Android

Hi there I am writing a PageRenderer that simply adds a menu control to the bottom left of the page. Using iOS the renderer is easy because I can simply use View.AddSubview (button); and it works...

View Article

Xamarin.Forms and Android AppCompat Theme

Hi everyone, I'm using Xamarin.Forms to make an Android application (Lollipops 5.1, API 22 on Nexus 5 with Android Player atm.). I wanted to customize the tab/nav bar so i used an AppCompat Activity...

View Article


list of numbers in line

Hi, i'm using a list view with labels to show a list of numbers (currency), but the digits of the numbers are not miming each other. Is there an other way to show a clear list instead of using a...

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
Browsing all 89864 articles
Browse latest View live


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