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

Grid.Column Definition in percent

Hi, here a quick question. I'm using a Grid in Xamarin.Forms Xaml and would like to specify a Grid.ColumnDefinition in percent (e.g. 50% of the viewport width). What's a newbie to do? Any (ever so far...

View Article


Whate are the default values for ImageCell

What are the default values of an imagecell? I need to know the default Padding and layouts used. Currently i have View = new StackLayout { Orientation = StackOrientation.Horizontal, Padding = new...

View Article


OpenRIA Autentication in a PCL

I am in the process of migrating my code from Silverlight over to a Xamarin.Forms solution. I have found all the pieces to complete the puzzle so far (Prism, MVVM support, OpenRIA services etc.) I am...

View Article

ViewPostImeInputState ACTION_DOWN; Prevents tapping a listview in Android

Hello! Every time I try to tap down on a listview (listview.ItemTapped), the event doesn't fire, and I get the ACTION_DOWN in my Output. Here is a sample project if anyone wants to try at it:...

View Article

TapGestureRecognizer on stack inside ViewCell

Is it possible to get a tap on a stacklayout inside a ViewCell? It seems like ViewCell takes all the taps. `public class MobileView : ViewCell { public MobileView (Employee profile) { var...

View Article


UriImageSource questions

Hi All, I'm new on Xamarin form development, and I have a question about UriImageSource caching. I have a simple custom CellView that contain an Image and that I bind in this way....

View Article

double tap for zoom is not working..

i take one scrollview inside that i take an imageview and add gesture recognizer and attach to it but the problem is when i double tap on image it's not working...how to solve this here is my code.....

View Article

CarouselPage Children.RemoveAt not working (iOS)

Trying to remove a page from CarouselPage with Children.RemoveAt(index) and it doesn't work. System.NullReferenceException is thrown (Object reference not set to an instance of an object) in iOS. Same...

View Article


Setting the AutomationProperties.AutomationId on Windows Universal apps

For iOS and Android it is possible to use the following to set the AccessibilityIdentifier using code like this: Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) => { //...

View Article


Xamarin.Forms searchbar crashes in any kind of content - Android only

When i try to put a search bar in a content page in any type of context i.e.. content = searchbar, stack layout,grid layout, abs layout, etc. the application crashes. I've tried various target/min sdk...

View Article

Mock GPS provider in Android

I have Xamarin.Forms project and I am trying to mock GPS provider in Android project. In my code I created test provider like this... lockManager.AddTestProvider("gps_test_provider", "requiresNetwork"...

View Article

INetwork IsReachable always returns false

I'm calling Xamarin.Forms.Labs.Droid.Services.Network's IsReachable() and IsReachableByWifi(), to check connectivity and access to a server prior to an action such as login. These methods always return...

View Article

Styling existing xamarin.forms controls

Can I override styles for the standard complex Xamarin.Forms controls. For example some controls like the tabbed page have several visual elements that I would like to customise. Such as the colour of...

View Article


DisplayActionSheet - Windows Phone Problem

Hey guys, I've got a problem with the function DisplayActionSheet (developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/pop-ups/). In my app I call the function like this: var action...

View Article

Navigate programmatically from one detail page to another (MasterDetailPage)

I have a button on a detail page (using MasterDetailPage) that it is supposed to take you to a different detail page. The problem is if I change de detail page from outside menu (MasterDetailPage),...

View Article


What is a ViewRenderer ? Can I derive from it as renderer and get access to...

In Xamarin Forms, I'm trying to create a custom renderer for Android that renders my custom Xamarin forms control (MyControl) with MyView. My renderer is extending ViewRenderer<MyControl,...

View Article

Changing brigthness through settings page in app

Hi, I have a settings page and using that I need to increase and decrease brightness(contrast) . This is similar to phone settings. However similar functionality should be done within the app so that...

View Article


MasterDetailPage Icon color question

First off, this is not my design, but: On iOS, the MasterDetailPage icon seems to only allow a monochromatic color due to the way the Bar colors are applied. Using a single color icon works just fine...

View Article

How are validate gps data in CrossGeolocator plugin?

I'm using @JamesMontemagno Geolocator plugin. I test IsGeolocationAvailable and IsGeolocationEnabled properties to verify in GPS is working. I would like to know (if isGeolocationAvailable and...

View Article

iOS SearchBar in RelativeLayout Not Displaying

I'm trying to add a SearchBar into a RelativeLayout in Xamarin.Forms. It displays correctly on Android, but not on iOS. Has anyone run into this issue before, and know how to fix it? Here's the code...

View Article
Browsing all 58056 articles
Browse latest View live