Questions tagged c#

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

iOS Firebase Nuget Packages failed to build

Good day, I’m using visual studio 2017 , xamarin iOS. I’m trying to implement ios push notifications with firebase, so I’ve installed Xamarin.Firebase.iOS.CloudMessaging and it’s dependecies. But the project is not building and I’m getting errors on each package : "Download failed. Please download https://dl.google.com/dl/cpdc/15a4dd6c971f8bbf/FirebaseAnalytics-4.0.4.tar.gz to a file called C:UsersMeAppDataLocalXamarinBuildDownloadCacheFAnlytcs-4.0.4.tgz." I’ve tried to add both […]

By Eve
Published
Categorised as Uncategorised Tagged , , ,

Is it possible to hook into Hardware keyboard events at an Application level?

I am developing a Xamarin.Forms application for iOS, Android and UWP. I would like to hook into hardware keyboard events at an application level (not an individual page level (because its a Xamarin.Forms application)) so that when a user presses a key on the keyboard I can invoke an action in my application. On Android […]

By user1
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin.Forms – Label FontSize OnPlatform – XAML error

I have this code: <Label x:Name=”questionGroupHintInfoLabel” FontAttributes=”Bold” Text=”Folgende Hinweismeldung wurde für die aktuelle Fragengruppe hinterlegt:”> <Label.FontSize> <OnPlatform x:TypeArguments=”NamedSize” iOS=”Small” Android=”Small” /> </Label.FontSize> </Label> …and get this error: No property, bindable property, or event found for FontSize What i’m doing wrong? Thanks. Source: Xamarin.ios Questions

By OPunktSchmidt
Published
Categorised as Uncategorised Tagged , , , ,

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 db as actual case whatever it is. Could anyone tell me if there is anyway to convert it to uppercase without doing so through the code behind? […]

By Riyas
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin Forms: custom entry with inline tag support [closed]

I’m trying to build a XF app which will allow users to enter text and tag a list of places (similar to how you would tag someone on WhatsApp, Outlook app, or even Twitter’s hashtag). I’m still starting out with XF. Could anyone point me in the correct direction? The most I’ve found is the […]

By BeginnerCoder
Published
Categorised as Uncategorised Tagged , , , ,

multiple_matching_tokens_detected exception in authContext.AcquireTokenAsync

In mobile app, I have written ADAL authentication logic which is working for most of the users. var authContext = new AuthenticationContext(authority); var controller = UIApplication.SharedApplication.KeyWindow.RootViewController; var uri = new Uri(returnUri); var platformParams = new PlatformParameters(controller); var authResult = await authContext.AcquireTokenAsync(resource, clientId, uri, platformParams); Only 2-3 odd users are getting below exception. {Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException: multiple_matching_tokens_detected: The […]

By San9211
Published
Categorised as Uncategorised Tagged , , ,

Prompt User to enable bluetooth in Xamarin Forms

Are there any workaround which I can use to prompt a user to enable bluetooth in Xamarin Forms / C#? Like a Display Alert with ‘Yes’ or ‘No’ for prompting the user to switch on the bluetooth in case its not enabled. If the user selects, ‘Yes’, the bluetooth is enabled. Please help me to […]

By crazydev
Published
Categorised as Uncategorised Tagged , , ,

Xamarin – Convert image to byte array

I use a media plugin to take or pick a photo from either an Android device or iOS device. I then want to tweet that image using LINQtoTwitter. In order to do that the image needs to be in the format bytes[]. How would I convert my image to bytes in order to upload? Code […]

By Bradley Jarvis
Published
Categorised as Uncategorised Tagged , , , ,

Capital Font for Label in Xamarin Forms Style Xaml

How can we set style for label in Xamarin forms to have all fonts in capital. For now I have style in App.xaml like the sample below. <ResourceDictionary> <Style x:Key=”WelcomeLabelStyle” TargetType=”Label”> <Setter Property=”FontFamily” Value=”Fira Sans Ultra Light” /> </Style> </ResourceDictionary> Source: Xamarin.ios Questions

By Mayank Shrivastava
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin iOS root view controller at the end of application launch

this is really throwing me for a loop. I installed Xamarin for Visual Studio, created an empty project and connected to my Mac. I simulate an iPhone and get this error Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Application windows are expected to have a root view controller at the end of application launch Which […]

By Zac
Published
Categorised as Uncategorised Tagged , ,
1 11 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