Questions tagged c#

Explore the latest questions and answers asked by our top developers.

Is there a way to disable Auto Capitalisation on Xamarin Forms ‘Entry’ XAML

I have just started working in Xamarin and am writing an App targeting iOS and Android. I’m trying to keep pretty much all of my UI design in the common library between them and am starting to find the lines a bit blurred. My current requirement is to disable the auto-capitalisation on the ‘Entry’ tag […]

By The Senator
Published
Categorised as Uncategorised Tagged , , , ,

How to open Facebook / Twitter app from my iOS app in Xamarin?

I’m developing an iOS app with Xamarin, in C#. I have a “contact” UIViewController, with some buttons, including Facebook and Twitter. I need to open the Facebook and Twitter App with a specific Facebook Page and Twitter profile from my app. What is the best way to do this? Source: Xamarin.ios Questions

By pasluc74669
Published
Categorised as Uncategorised Tagged , , , ,

Set a custom default font for whole Xamarin.iOS app?

I have a custom font that I want to set as the default font for the whole Xamarin.iOS app without specifying the size. How can I achieve this? I already found a similar question here, however this refers to a non-Xamarin iOS app. Source: Xamarin.ios Questions

By Adnan Umer
Published
Categorised as Uncategorised Tagged , , , ,

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 Performance Resolutions Architecture Implementation etc. We never know when and what causes app crash a big ISSUE while playing with the app, It could happen anytime e.g. App Launch, […]

By Mohammad Riyaz
Published
Categorised as Uncategorised Tagged , , ,

C#: Unable to cast object of type ‘System.Int64’ to type ‘System.Int32’

I have code as follows: Dictionary<object, object> dict = … Color = (int)dict.GetValue(“color”); When I convert the Color to an int, I get the following exception: System.InvalidCastException: Unable to cast object of type ‘System.Int64’ to type ‘System.Int32’. I am not sure why I can’t just cast from a long to an int. I know for […]

By Kostub Deshmukh
Published
Categorised as Uncategorised Tagged , , ,

Setting custom font on all UIButtons

I want to apply a custom font to all buttons in my iOS app i’ve created in Xamarin. I’ve achieved the custom font on labels with the previous code: //Labels UILabel.Appearance.Font = UIFont.FromName(“Lato-Light”,16f); …which affects some but not all buttons for some reason. Then I tried targeting the label on the button like so: var […]

By cheriana
Published
Categorised as Uncategorised Tagged , , ,

Is it possible to change the actual ViewController on a UITabBarController in Monotouch

I have a Monotouch App, on AppDelegate the RootViewController is a TabBarController, this TabBarController have 5 ViewControllers, lets say view1 to view5, I use tabBarController.SelectedIndex = 2; for select which viewController will load when the app starts it works and the default tabBar is view3, now I need to show another viewController, lets say from […]

By Ben
Published
Categorised as Uncategorised Tagged , ,
1 12 13 14

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq