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

Same UI across platform using Xamarin.Forms

I am currently developing a mobile app using Xamarin.Forms for Android and IOS. I need to share the UI code without rendering to specific platform. The UI must be same across the platform. Is it...

View Article


How to scale the webview content in Xamarin forms?

Hi, I want to achieve something like "ScaleAspectFit - from iOS" in Xamarin Forms. Anyhow know how to to it? (Not via Custom Renderer).

View Article


Xamarin.Forms 1.4.2-pre2 Released

1.4.1-pre2 Notes Bug Fixes New .dlls are properly installed. 1.4.1-pre1 Notes Enhancements Large performance boost when laying out lots of items on Windows platform Small performance boost for Grid...

View Article

Event Handler is null. What I am doing wrong?

Hi There, I am trying to create a ListView with some specific template per cell, so I am using a class that inherits from the ViewCell class. Here are the code public class DefaultPageListViewTemplate...

View Article

Cannot see the entire content when I scroll down till the end of a list view.

I have 3 elements in my content page (Xamarin forms), for instance: Content = new StackLayout { HorizontalOptions = LayoutOptions.Fill, VerticalOptions = LayoutOptions.FillAndExpand, Children =...

View Article


Prevent Forms Android app to restart

I have a forms app for android & iOS. When the app goes to the background (on Android) by using the back button and then tap the app icon, the app restarts. My login 'window' shows and then the...

View Article

Databinding and Image to a url

I think there should be a really easy way to do this "Image" is a string url like http://www.something.com/images/hello.png image.SetBinding(Image.SourceProperty, new Binding("Image")); I'm trying to...

View Article

MessagingCenter Exception in Xamarin.Forms 1.4

I am getting the following MessagingCenter exception thrown after upgrading to Xamarin Forms 1.4. Is there an appropriate workaround for the MessagingCenter in the latest Xamarin.Forms versions?...

View Article


Date and time picker background color for Android

Hi I want to set background color of my time picker and date picker. I asked xamarin and they says I need to create a custom renderer. So I tried to create a custom renederer but I am not able to find...

View Article


Migrating iOS classic projects fail to build with device. MT2002 Error,...

I've been seeing this problem popping up in the forum: old projects built under the classic iOS packages work in the simulator, but fail to build for an actual device. Here is the error:...

View Article

XF for WinPhone8.1 (RT) Preview - BeginInvokeOnMainThread broken?

I ran into problems while trying to use BeginInvokeOnMainThread with the XF for Windows Preview on Windows Phone 8.1 (Runtime). I can duplicate the problem with a simple contrived example. I added the...

View Article

File locations and File.Exists

Hi, I've tried every conceivable way (I think), to determine if a file exists, and I can't produce consistent results. It randomly works/fails. I've tried: //testing only var documentsPathOne =...

View Article

Cleaning up events?

Hello! I am trying to Unsubscribe page-specific events when the page is no longer valid (ie. page has been popped off the NavigationStack). However, I can't find a reliable way to make this happen. Can...

View Article


Toolbar icon and text

It's possible icon and text in toolbar at same time? <ToolbarItem Command="{Binding MyCmd}" Text="{Binding MyVal, StringFormat='{0:C2}'}"> <ToolbarItem.Icon> <OnPlatform...

View Article

When proper support for F#?

I'm testing the viability of use Xamarin.Forms + F# for rewrite a side project. However, is clear than F# have not full support for it, and is necessary to build in a hackish way the project. Then I...

View Article


Get the selected item in a list view button

I am trying to get the selected item in the tap event of a button in a list view item, but I can't seem to figure it out. Anyone know how to accomplish this?

View Article

bindings don't work when not visible?

Hi Xamarin Experts, Is there a way for me to turn on bindings when controls are not visible? They don't seem to work when controls are not visible..... Right? Thanks, Mike

View Article


ViewCell blows up every time

On WinPhone, If I set any content inside the below ViewCell (see example Button), I get the following exception: Message = "MeasureOverride of element...

View Article

Add SeekBar to View with code dynamically?

Hi, Looking to know if somthing like this is possible 'new ContentPage{ Content = new StackLayout{ Children = { new SeekBar{ //..... properties here }, } } } var seekBar = new SeekBar{ //... properties...

View Article

How did you get good perf while using ImageCircle in ListView?

I can't get the ListView perf to a reasonable level even though my ViewCell contains only an ImageCircle.. @JamesMontemagno - I was watching your video on implementing ImageCircle and while...

View Article
Browsing all 58056 articles
Browse latest View live


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