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

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 Article


Why 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 Article


Lateral 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 Article

MasterDetail & 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 Article

How 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 Article


Setting 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 Article

Default 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 Article

Custom 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 Article


Why 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 Article


The 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 Article

Extra 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 Article

Xaml 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 Article

Storing 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 Article


ListView 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 Article

Application 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 Article


Xamarin.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 Article

Custom 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 Article

Is 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 Article

WinPhone & 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
Browsing all 77050 articles
Browse latest View live


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