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

[XF] Could not load assembly System.Buffers 4.0.2.0 on Android

I've been trying to use EF Core in a test project, but unfortunately I get an error at build time. I've been consulting this guide As soon as I add the Microsoft.EntityFrameworCore and...

View Article


Dynamic change StyleClass for VisualElement

How change programatically add one and remove another (in other words) make a replace of one class to another?

View Article


Ble does not scan when run

Previously, I added code using the plugin Bluetooth LE plugin for Xamarin to scan for ble devices. It had worked for a while but I have since updated to the latest version of Xamarin and Visual Studio,...

View Article

Exception throws when saving file in Android device in ExternalStorageDirectory

I faced a problem when saving file in the Android device in external storage location. Xamarin.Forms Android project details: Target Framework : Android 8.1 Minimum Android version: Android 4.4 Target...

View Article

How to get the width and height of a frame view for xamarin forms for iOS?

I have implemented a gradient background color for frame and grid view.Its perfectly working fine in android but in iOS i have to mention the width and height static. mainView = new UIView(new...

View Article


[Xamarin.Forms] : How to save ContentPage UI as a PDF and Print.

I want to design a Layout and Print it on A4 page. So, How do I save Content Page as a PDF and Fire it on Network Printer. Platforms: Android UWP IOS

View Article

I am unable to set the particular page in Carousel view

Hi, I am implemented the Carousel view using https://blog.xamarin.com/flip-through-items-with-xamarin-forms-carouselview/. And I am able to implement the Carousel, **But My Problem I want to set the...

View Article

Error: The name AuthenticationState does not exist in the current context

I am doing google signin for my project . I am getting this error: 'The name AuthenticationState does not exist in the current context' in the MainActivity.cs page .Please see the attached screenshot....

View Article


Phoneword example: encapsulate Xamarin.Forms don't work for Android.

Hi, I'm very new to C# and Xamarin, so please excuse me. I'd like to encapsulate the Xamarin.Forms methods from the MainPage into an own Forms.cs. The UWP works fine, but the Android project freeze and...

View Article


Type mismatch on Bindableproperty

Hi, I have following codes in my custom view class and xaml files: my custom property: public static readonly BindableProperty LabelColorProperty = BindableProperty.CreateAttached("LabelColor",...

View Article

Xamarin.Forms - Can't get geolocation

Hi, I am trying to use the code from this article: https://docs.microsoft.com/en-us/xamarin/essentials/geolocation?tabs=android but "using Xamarin.Essentials" leads to compile-time error: Error CS0234...

View Article

listView binding

How to Bind the ListView with an Observablecollection type where the type itself an observable collection. My MVVM like below ViewModel public class OrdersViewModel { public...

View Article

where we using task async and await method in xamarin forms ?

Hello guys can you describe me where we are using task async and await method in xamarin forms ?

View Article


Apk size is too large.How to reduce it?

In my xamarin form application I am using Telerik.but when I release my apk for playstore,the apk size taking 86 mb..so how to reduce it? I checked all linking setting,while using sdk and user...

View Article

Dependency Injection best practice ?

I am trying to use Dependency Injection in my project but its still new to me. I've read quite a lot of tutorials but I still don't what is the best practice to create pages or viewmodels.. It seems...

View Article


AutomationID Showing inconsistently

I have had this problem for some time. If I add AutomationID to, e.g., 5 controls on a page, and then run app.Repl(), I see one or two of the controls with their AutomationID but most without. Have you...

View Article

Using Slider with audio

I need an example to change the position of the audio, but using the slider control?

View Article


Xamarin Android:

Hi, We are using Xamarin forms to develop our application. For xamarin Android (apk) application some security audit happen & they have found some security issue in our application. "Found elf...

View Article

Is possible to avoid slow startup time of xf app on Android in this way?

I made a big xamarin form app for ios and android, all is working great, but on Android app take till 8 seconds to starts. I already try to use XAML Compilation and AOT...the AOT gain 2seconds, but it...

View Article

Image may be NSFW.
Clik here to view.

Xamarin form - Firebase notification with image

i want to send notification from firebase console with image, i have successfully implement in my xamarin form i can get device token and can send notification to device from firebase console, but the...

View Article
Browsing all 77050 articles
Browse latest View live


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