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

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


Submission: SegmentControl for Xamarin.Forms.Labs

The Klickle Development Team would like to submit to the Xamarin Forms Labs project an implementation of control that mimics the IOS UISegmentControl. The license would be the Lab's license of Apache...

View Article

Open Camera app and take photo

Hi, I have an app for android and now I am extending it to iOS. I need to take photos from the app. I am using native calls with dependency service (described in this thread) From PCL I call the...

View Article

Google Maps with Xamarin.Forms - Get Directions

How can I get the directions using the Google API (Map) for Xamarin.Forms?

View Article

Updating ObservableCollection from async task crashes app. Bug or are we...

Hi We are currently building a Xamarin Forms application but have encountered a problem. It is sometimes crashing (in Android) whenever an ObservableCollection is updated from an async task. We do some...

View Article


Is there a method similar as ViewwillAppear() or ViewDidAppear() in Forms??

I want to load something when the view will appear which is pretty much similar as ViewwillAppear() or ViewDidAppear() in iOS?? Can I use something instead? Thanks advanced.

View Article

ListView inside StackLayout: a height problem

In a ContentPage I have a ListView inside a StackLayout inside a ScrollView. The ListView is populated (ItemSource is set) in the ContentPage when OnAppearing gets called and I can see that the list is...

View Article


Testing in Android - getting an error with the shared runtime

I'm trying to test my XF application in an Android genymotion emulator. Unfortunately, I can't get the application to start. I am getting the following error when I look this up in monitor. This...

View Article

Page Lifecycle

I'm trying to override 2 Xamarin.Form Page lifecyle methods (OnAppearing() and OnDisappearing()), but it doesn't appear to be working. ` protected override void OnAppearing() { base.OnAppearing();...

View Article


Custom Cell Click (ListView)

Hi everyone. I have a custom cell class for my listview. When i selected an item, i want to get it's name variable. But I couldn't do it with ListView's itemselected function.. Please help me! Thanks!

View Article

Navigation Page Toolbar

Hi! How can I add a bottom toolbar to my Navigation Page? I'm using Xamarin.Forms, not iOS specific code.

View Article

A Missing Method Exception

A created a new Xamarin Forms project for Android project and changed nothing. And when i debug it in a android simulator, the app get an error before entering onCreate method. I checked the stack...

View Article
Browsing all 79144 articles
Browse latest View live


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