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

Xamarin.Forms adding items/data from a Rest API to an ObservableCollection

I've got a Xaml page that I'm using ListView on to display a list of offers. I'm trying to Get offers using a REST Web API call to display on the page using an ObservableCollection. Since async calls...

View Article


Xamarin Forms Map, MoveToRegion in custom event handler not working

Hello everyone, Can anyone please tell why Map.MoveToRegion(.FromCenterAndRadius(somePosition,.FromKilometers(0.5))); works in implemented events, but in a custom control the custom event is fired and...

View Article


Can a double-tap gesture be used on an Entry control so as to do something...

I have an Entry control on a form that I can type a date into which is validated by a behavior and that works fine. I also have an invisible (to save screen real estate) DatePicker on the form that I...

View Article

TapGestureRecognizer only recognizing double taps on Galaxy S6

This code works correctly on the nexus 4 xamarin simulator but when debugging on my Galaxy S6 Edge command methods are only executed with double taps. I have tried it with and without defining the...

View Article

Binding for Event Handlers

I'm having trouble creating a data binding for an event (like Clicked on button). The control is implemented with XAML and code behind. I didn't think the XAML was important so I didnt include it here....

View Article


How to change nav text programmatically in iOS?

How Can I change the text of Nav Bar programmatically in iOS? I can't use this.Title. I could change some attributes using: UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes() {...

View Article

System.MissingMethodException: Method 'ScrollView.ScrollToAsync' not found.

Every time I try to call ScrollView.ScrollToAsync() I get this run time exception: System.MissingMethodException: Method 'ScrollView.ScrollToAsync' not found. I'm not sure how my code compiles if the...

View Article

GridView with ItemsSource?

Are there any plans to implement the Grid with an ItemSource property?

View Article


ListView in ScrollView not scrolled

I have a RelativeLayout in ScrollView which contains ListView. When I want to scroll ListView scrolled RelativeLayout. But if I hold down ListView one finger, and scroll the other finger, it scrolled.

View Article


How to use Badge.Plugin in Xamarin.forms? Is there any alternate to...

Hello, I am using the Nuget plugin Badge.Plugin. I need to create and set the badge value in Xamarin.forms.Can we use the Badge.Plugin in forms.If so, how? Or is there any solution to create and set...

View Article

Forms uses badge to share project errors

http://www.nuget.org/packages/Xam.Plugin.Badge/ Is there a successful operation of the project? I'd like to find some common packages. But badge seems to be the only one.

View Article

Setting button background color removes material design touch feedback

How do i set the background of a button but still keep the touch feedback from android material design? <Button x:Name="login" Text="LOGIN" TextColor="White" BackgroundColor="Teal"...

View Article

app size is too large

I have made simple app with 2 classes app.cs and CarouselView.cs. used this code Only thing app is doing a slideshow with predefined images. there are 7 images, total size 800kb but when I created .apk...

View Article


Adding a picker in XAML

I'd like to add a picker control that has the values 1,2,3,4,5. I tried the following... <Picker SelectedIndex="{Binding NewCriterion.Importance}" > <Items>...

View Article

listview edit item and new item inside pop up

I bound my listview using mvvm logic but I need edit item and add new item actions. What is the best way to do it without navigating to another page? On WPF i have achieved this using a popup with a...

View Article


DependencyProperty equivalent for Xamarin Forms.

I'm writing a XAML + MVVM project for testing porpuses. So far i haven't had any problems trying to port my Windows code to Xamarin except for the DependencyProperty. Is there a way to get it working...

View Article

OnStart, OnSleep, and OnResume not called

Hello, I created a Xamarin.Forms Shared application and noticed that OnStart, OnSleep, and OnResume are never reached. OnStart should be called in Xamarin.Forms.Forms.Init am I right ? Why are all of...

View Article


Double-tapping in Xamarin.Forms on Android

We've found some rather annoying issues with multiple taps and navigation on Android using Xamarin.Forms. Let's say there's a button press and in the handler there's a bog-standard await...

View Article

Image may be NSFW.
Clik here to view.

Possible to support Images in NON root folder on windows??

Is there any way possible to support images that are in the Assets folder on Windows Phone? I have 50 to 60 different images and it is really annoying to not be able to organize them

View Article

ListView in Windows Phone causes Argument Out Of Range Exception

Hello, I am having the exact same problem, that was reported here: https://bugzilla.xamarin.com/show_bug.cgi?id=24681, which is: Attempting to remove the last item from the example list view causes an...

View Article
Browsing all 91519 articles
Browse latest View live