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 ArticleSystem.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 ArticleOnScroll 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 ArticleMasterDetailPage 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 ArticleHow 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 ArticleHow 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 ArticleJson 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 ArticleAsync 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 ArticleUnhandled 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 ArticleDone 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 ArticleHow 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 Articleforms 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 ArticleBindable 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 ArticleHow 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 ArticleWebview 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 ArticleAddSubview 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 ArticleXamarin.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 Articlelist 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 ArticlePushModalAsync 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 ArticleWhat 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