tagged [xamarin]

Camera access with Xamarin.Forms

Camera access with Xamarin.Forms Is anyone able to give a short, self-contained example on how to access the camera with Xamarin.Forms 1.3.x? Simply calling the native camera application and retrievin...

How to create a option menu in android?

How to create a option menu in android? I want to create a simple option menu in Android application with c# and Xamarin Studio. How can I do it? I haven't found any C# example of this. Can someone si...

How to play sounds on Xamarin.forms?

How to play sounds on Xamarin.forms? I'm creating an app for Android, iOS and Windows Phone using Xamarin.forms. My question is how to play a mp3 or wav with Xamarin Forms? My business logic is handle...

Get Android Context in PCL project

Get Android Context in PCL project How do I get the Android context from the Xamarin.Forms PCL project? I have tried to search stackoverflow but none fit my search. I am new to Xamarin.Forms and I am ...

16 Aug at 04:34

Obfuscation in Xamarin Projects

Obfuscation in Xamarin Projects As you know Xamarin projects are compiled into dot net dll assembly and it'll be pack into apk file and can be easily reflected by reflectors like DotPeek. How can we p...

5 Apr at 12:46

Toast equivalent for Xamarin Forms

Toast equivalent for Xamarin Forms Is there any way using Xamarin Forms (not Android or iOS specific) to have a pop-up, like Android does with Toast, that needs no user interaction and goes away after...

14 Nov at 15:12

Obtain current page name in Xamarin Forms app

Obtain current page name in Xamarin Forms app I am currently trying to understand how to get the name of the (xaml) page I am currently into, with my Xamarin Form app. How am I supposed to do it? I tr...

4 Dec at 22:18

How can I force Localization Culture to en-US for whole applicaiton in Xamarin

How can I force Localization Culture to en-US for whole applicaiton in Xamarin How to force to work in culture regardless of user setting. The issue I am facing in my application is, The app only supp...

Hide TabBar in Xamarin Forms Shell

Hide TabBar in Xamarin Forms Shell I wan't to hide the TabBar in a Xamarin Forms Shell 4.0.0.497661 project. I try using: After the page has loaded and drawed, but it has no effect. If I put in the co...

How to use Xamarin forms' Button.ContentLayout property?

How to use Xamarin forms' Button.ContentLayout property? Using the latest pre-release, I noticed that the button now has a Button.ContentLayout property, which I am hoping will allow us to add custom ...

14 Nov at 11:50

Handling Global Exception Xamarin | Droid | iOS

Handling Global Exception Xamarin | Droid | iOS We all know that mobile is compact platform where we have to look lots of things while building an application. It could be anything e.g. `Memory` `Perf...

Change button text color in disabled button (Xamarin.Forms)

Change button text color in disabled button (Xamarin.Forms) I need to change the text color of a button when it is disabled, I have created a custom renderer for iOS and one for Android. The iOS worke...

Servicestack monotouch DLL built using PCL

Servicestack monotouch DLL built using PCL I'm migrating a solution to MVVMCross but the ServiceStack client libraries are difficult to work with. How can I build ServiceStack client DLL into PCL lib...

Border Color for Editor in Xamarin.Forms

Border Color for Editor in Xamarin.Forms How can i make a border color for Editor in Xamarin.Forms? I used this [link](http://www.codeproject.com/Tips/845894/How-to-make-EditText-With-Border-and-Gradi...

27 Aug at 13:17

XamarinForms: StackLayout inside RelativeLayout is not filling the whole screen

XamarinForms: StackLayout inside RelativeLayout is not filling the whole screen I have this: But for so

16 May at 19:52

Visual Studio 2017 fail to connect macOS virtual machine installed visual studio for mac and xcode

Visual Studio 2017 fail to connect macOS virtual machine installed visual studio for mac and xcode Below error I am getting when I am connecting the visual studio to my macOS. I am building an iphone ...

4 Apr at 13:46

How to run code after a delay in Xamarin Android

How to run code after a delay in Xamarin Android I'm trying to show some code after a delay in my Android app. The Java code for doing this is something like this: How do I do this in Xamarin.Android...

Display label text in uppercase using xaml in Xamarin.Forms

Display label text in uppercase using xaml in Xamarin.Forms I have an username label and need to view this as uppercase but this should only relate to the UI. The data (string) should be saved in the ...

What's the difference between the ItemTapped and the ItemSelected event on a ListView in Xamarin.Forms?

What's the difference between the ItemTapped and the ItemSelected event on a ListView in Xamarin.Forms? A `ListView` in Xamarin.Forms has two events, which seem to be exactly the same: [ItemTapped](ht...

21 Oct at 15:41

Have an "'Resource.Attribute' does not contain a definition for 'actionBarSize'" error

Have an "'Resource.Attribute' does not contain a definition for 'actionBarSize'" error Was trying to debug an empty app and got "'Resource.Attribute' does not contain a definition for 'actionBarSize'"...

15 May at 13:24

How to get current location or move to current location in Xamarin.Forms.Map

How to get current location or move to current location in Xamarin.Forms.Map Since the Map already shows the user location (with IsShowingUser) I just want to zoom to this location. Is this easily pos...

14 Apr at 17:54

Xamarin.Forms.Color to hex value

Xamarin.Forms.Color to hex value I have a Xamarin.Forms.Color and I want to convert it to a 'hex value'. So far, I haven't found a solution to my problem. My code is as follows: ``` foreach (var cell ...

18 Aug at 18:56

frame border width in Xamarin.Forms

frame border width in Xamarin.Forms I use `Xamarin.Forms`, I have `Image`. I want to Border with `Corner Radius` and `Border Width`. Can I do it ? I try to use `Frame`. It good but it has only `Border...

7 Mar at 18:28

How to bind list inside ListView in Xamarin.Forms

How to bind list inside ListView in Xamarin.Forms I have one ListView on my page having `ItemSource` as `List` as shown below: How c

Using Thread.Sleep in Xamarin.Forms

Using Thread.Sleep in Xamarin.Forms I want to execute the following ``` MainPage = new ContentPage { Content = new StackLayout { Children = { new Button { Text = "Threa...