Should I remove event handlers onDisappearing to reduce memory leaks?
I know that you should remove event handlers OnPause if you are on Android, but should you remove them OnDisappering in a xamarin forms app? private EventHandler<SelectedItemChangedEventArgs>...
View ArticleWhy Geocoder.GetPositionsForAddressAsync returns no results?
I am trying to get coordinates for an address, so I am doing: var coder = new Geocoder(); var positions = (await coder.GetPositionsForAddressAsync(Business.Address)).ToList(); When I run on iOS, it...
View ArticleLateral menu and TabbedPage
Hi, I have an app with a left lateral menu (implementing with MasterDetailPage) and the Detail page should be a TabbedPage. The implementation is ok, but i have an UX problem in Android. When clicking...
View ArticleMasterDetail & Tabbed pages have unexpected results on Android
Hi! I just started out with the (awesome) Xamarin.Forms, but bumped into a problem yesterday that I can't seem to figure out. I created a MasterDetail page that contains two Menu options: One that...
View ArticleHow to work around PushAsync is not supported globally on Android?
I've got a ContentPage which is nested within a MasterDetailPage. I'm trying to use PushAsync(new SomePage()); but it keeps on throwing this error. PushAsync is not supported globally on Android,...
View ArticleSetting MainPage multiple times
I have an simple application with two pages. On start, I set the MainPage property to a page, like: MainPage = new StartPage(); From the StartPage the user can go forward to the second page. I don't...
View ArticleDefault value for Picker
I would like to show a default value in the text field of the Picker. So far I know the "Title" is automatically used but I would like to show one of the options, the Picker shows, e.g. the first one....
View ArticleCustom Range Slider for iOS
For those who search to make a custom range slider in iOS, this is mine. OneView.xaml in MyApp.Shared.Views : <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"...
View ArticleWhy no direct conenction to SQL Server
Hi all, i have to find out a way to sync a hugh amount of sql data from our sql server to an local db of an ipad. I have read on net that is not a good way to connect the mobile device directly to the...
View ArticleThe phone number passed to send SMS is decoded wrongly
I am using the following code in an Xamarin.Forms app in the iOS project to send SMS: public bool SendSMS (string number, string SMSMessage) { return UIApplication.SharedApplication.OpenUrl (new...
View ArticleExtra space appearing on top of table view in IOS
I am getting extra space on top of table view in IOS, how to eliminate this. When using intent="form" extra space is coming if intent changed to data space issue was gone but extra separator line are...
View ArticleXaml Data Binding
Hi. There is way to call a view method from xaml. For example: public class MyLabel : Label { public MyMethod(String pParameter) { ... } } <?xml version="1.0" encoding="utf-8" ?> <ContentPage...
View ArticleStoring data with Sqlite.net Extensions
Hi there, i'm currently making an app that is using Sqlite to store an object that has a list of object within it. I've been having trouble trying to insert and retrieve the object for the past week...
View ArticleListView in TableView: Unable to activate instance of type ...ListViewAdapter...
In my shared code project application I'm using something similar to this: List<string> data = new List<string> { "1", "2", "3", "4", "5", "6", "7" }; ListView lv = new ListView() {...
View ArticleApplication crashes when ContentPage in TabbedPage has its IsVisible property...
Application crashes when ContentPage in TabbedPage has its IsVisible property set to false with exception: "Unable to cast object of type 'Xamarin.Forms.ContentPage' to type 'Xamarin.Forms.View'."...
View ArticleXamarin.Forms binding with indexers crashes application
When using an object with two indexers, the binding can't resolve it and the application crashes. For instance, if the following binding is set <Label Text="{Binding [asdf]}" /> And the...
View ArticleCustom Master Detail opacity
Hi Experts, I have a custom master detail page that is a tabbed page. By custom i mean that i used multipage so that i could control the direction of the animation. Everything works fine except that...
View Article"Xam.PCL - Settings Plugin" gives error in test project
I have recently added the Xam.Plugins.Settings to my Xamarin forms project and it is working fine - but it is now failing my unit tests. My unit test are agains ta PCL library but it gives the...
View ArticleIs there a good cross platform admob component/pcl with examples?
I saw one; but it had no documentation and seems that it's fiddly to compile. Wondering what people do for advertising. I'm not an android guy, and perhaps it's really easy; but so far to me it looks...
View ArticleWinPhone & Win 8.1: Crash on Navigation.PopModalAsync() if the page contains...
I have a xaml page “Details_View” showed with ContentPage.Navigation.PushAsync(Details_View) with an Editor inside. If I call Navigation.PopModalAsync() the app crashes (happens only on WinPhone and...
View Article