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

Image may be NSFW.
Clik here to view.

#if __IOS__ seems not working

I used this code in my app, but when it was running, it didn't print the text(both in simulator and my device). #if __IOS__ System.Diagnostics.Debug.WriteLine ("I'm in iOS"); #endif The Define Symbols...

View Article


ActivityIndicator does not show from the async function

I am trying to display an activity indication on button click. When I click the button the indicator does not show: Please Help Thanks... I am creating the activity indicator as shown below: var...

View Article


Has anyone figured out how to play sound in Xamarin forms? Preferably Android?

I am looking to make an app that uses sounds, but Xamarin.Forms does not have support for sound, and I tried using the tutorial for the media player in Xamarin.Android, but it seems google changed the...

View Article

Tabbed Page Action Bar Rendering

The follow is a way to overwhelm the issues when setup the action bar of a tabbed page project. But before showing the rendered let make a short intro for the guys who is using this for first time....

View Article

Master Detail Page on the right side using Xamarin.Forms

Try to create custom page with behavior similar to existing master detail page, with only one difference - opening from right side. Custom class has two properties: Content and Menu - both Page type....

View Article


Add spacing between title bar logo and the back-arrow?

How can I provide spacing between the app's title bar logo and the back-arrow? I am preparing to deploy an app and the app's title bar requires some formatting.

View Article

Force Keyboard to show on Android

Hi, I'm trying to popup the keyboard on android when a control gets focused. The .Focus() method does produce the wanted effect in IOS - the controls gets the focus and thereby the keyboard is showed....

View Article

Problem with loading PCL in XAML

Good afternoon, I am working through Xamarin.Forms examples in the Petzold book (Preview 2), and having trouble loading an external PCL. I have created a PCL library with one class in it. I am able to...

View Article


Editor IsEnabled property is of no effect in iOS

@CraigDunn‌ I try to add Editor and set IsEnabled, is work for Android and Winphone, but not for iOS.

View Article


How to register device in SMP Server in Xamarin.Forms

I am using Xamarin.Forms. I want to register my device to SMP Server for login authentication.

View Article

Image may be NSFW.
Clik here to view.

Access WebClient in MasterApplication

Hey, is there any way of accessing the WebClient() Class in the Master Application? Not in the iOS or Android one, instead in the Sharedcode-PCL Lib? Or do I need to use a DependencyService? Sorry for...

View Article

How to scale webview to device's screen size

I have searched everywhere and just cannot figure out how to scale my webview content to my device's screen size. I have to use the horizontal scrollbar to view the web content. Is there any guidance...

View Article

XLabs errors on Windows Phone project

So I've got an empty xamarin.forms project which works fine on iOS, Android and WinPhone, but I need XLabs HybridWebView,, and after only adding XLabs.Forms from Nuget on WinPhone project these errors...

View Article


Anyone know how to remove the blue line under Android ListView Group Headers?

Hi, has anyone successfully managed to remove the thin blue line under the Android Listview Group Headers? I've tried a number of approaches, nothing appears to work, any help would really be...

View Article

Height = 0 in OnSizeChanged method

protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); global::Xamarin.Forms.Forms.Init (this, bundle); LoadApplication (new App ()); SetContentView(Resource.Layout.Main);...

View Article


Xamarin.Forms creating an Android Native Listview with pull to refresh

I've pulled down the "Working with ListView Native Layouts" projects (https://developer.xamarin.com/samples/xamarin-forms/WorkingWithListviewNative/) and I'm building an app that has a similar...

View Article

ScrollView doesn't have property Padding

I read book Xamarin Forms and there is example. ScrollView scrollView = new ScrollView { Content = textStack, VerticalOptions = LayoutOptions.FillAndExpand, Padding = new Thickness(5, 0), }; But...

View Article


Xamarin.Forms sample launch Winphone proj is not loaded

I read book about Xamarin.Forms and try samples related to it. When I launch any of this solutions I get error (look image) Then if I press Install there is no winphone project. It's "unloaded"....

View Article

Unable to use WCF within Android app

I receive the following exception when attempting to invoke a WCF service within my Droid project: "Operation is not valid due to the current state of the object" I am not sure what I am doing wrong....

View Article

MR.Gestures handles ALL touch gestures

With MR.Gestures you can handle the Tapping, Tapped, DoupleTapped, LongPressing, LongPressed, Panning, Panned, Swiped, Pinching, Pinched, Rotating and Rotated gestures on all layouts, cells, views and...

View Article
Browsing all 89864 articles
Browse latest View live