Questions tagged [xamarin.forms]

Xamarin.Forms is a Microsoft product allowing the building of native, cross-platform apps for Android, iOS, Windows, and others from a single shared C# codebase.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

ObjectDisposedException NSDate when formatting date

I have the following method to format a UnixTimestamp to a formatted date and time: public string ConvertDateTimeToDeviceShortDateFormat(double unixTimestamp) { using (var dateInNsDate = NSDate....
idenardi's user avatar
  • 620
0 votes
1 answer
34 views

How to update DevExpress CollectionView row in xamarin forms?

I'm developing a xamarin forms app. I want user select some values and then update collectionview after that to show selected value on that row. That 2 is selected value.It comes here but sometimes ...
Mert Altiparmak's user avatar
0 votes
0 answers
16 views

AM/PM in Hindi in TimePicker Label on iOS device

Time picker label is displaying the selected time AM/PM in hindi instead of english. But it is displaying in english in the selecter section As can be seen here. Device Language English and Device ...
Ashish's user avatar
  • 5
0 votes
0 answers
29 views

Can't push new page right after popping modal page in Xamarin forms

Trying to push a new page right after popping the modal page. private async void Button_Clicked(object sender, EventArgs e) { await Navigation.PopModalAsync(); await Navigation.PushAsync(new ...
Slava's user avatar
  • 1
0 votes
0 answers
24 views

how to stop sending logs to Google Analytics(GA4 Mobile) in c#

I am using: async Task Command_SetAnalyticsOptionFalse() { selectedAnalyticsEnabled = false; Analytics.SetAnalyticsCollectionEnabled(false); await ...
Vinay verma's user avatar
0 votes
0 answers
35 views

Xamarin.Forms Label TextColor Not Applying

I am experiencing an issue with setting the TextColor property for a Xamarin.Forms Label. Despite specifying a color, the text remains transparent. I have tried the following: Ensured there are no ...
user avatar
0 votes
0 answers
35 views

Xamarin Essentials App Theme issues with iOS

wondering if anyone can shed some light on a issue I seem to be having in Xamarin forms. When I use the Xamarin Essentials App Theme API and use {AppThemeBinding Light=#ffffff, Dark=#000000} on my ...
JoeCold's user avatar
  • 47
0 votes
0 answers
26 views

Xamarin forms element not visible in inspect.exe UI automation tree yet can view properties on hover

So I'm using WinAppDriver to automate the testing of a UWP application written with Xamarin Forms and I am using to inspect.exe to make sure that the AutomationID property is being set properly on all ...
Dominic Costa's user avatar
0 votes
1 answer
14 views

Building my Xamarin.Forms app is not producing an Android bundle .aab file

I'm using Visual Studio 2022, latest update. I have updated NuGet to the latest Xamarin.Forms (5.0.0). Under Android Options / Android Package Format, I have chosen 'bundle'. In Debug, I'm able to ...
Sandra's user avatar
  • 648
-1 votes
0 answers
42 views

Android NET MAUI can not make the BottomSheet non-Modal

I am trying to make sheet Modal on Android but this is not working! Can anyone pls help me understand how can a show a bottomsheet dialog as non modal. So the page where the sheet is shown stay ...
Frizbi's user avatar
  • 1
0 votes
1 answer
36 views

Retrieve Pixel Color from Tapped Image Source in Xamarin.Forms

I am working on a Xamarin.Forms project and would like to retrieve the color of a pixel from an image that is set as the source directly in XAML. The user interaction is triggered by tapping on the ...
user avatar
0 votes
1 answer
37 views

Xamarin Forms: could not launch the ios application on the device

I could not launch the xamarin.form IOS application on the device. The application can be deployed successfully but the launch failed. error MT1007: Failed to launch the application on the device '...
RMR's user avatar
  • 599
0 votes
0 answers
25 views

Translating WinForms Drawing Code to Xamarin.Forms with SkiaSharp

I have a WinForms application with drawing code that I'm trying to translate to Xamarin.Forms using SkiaSharp for cross-platform compatibility. I'm specifically having trouble with the following part ...
user avatar
0 votes
0 answers
37 views

Translating WinForms Drawing Code to Xamarin.Forms Without SKPaintSurfaceEventArgs

I came across the following WinForms drawing code that I need to adapt for use in a Xamarin.Forms project. However, the code is originally written within the SKPaintSurfaceEventArgs event handler in a ...
user avatar
0 votes
0 answers
35 views

Translating Windows Forms Drawing Logic to Xamarin.Forms with SkiaSharp

I have a Windows Forms application with the following drawing logic using Graphics and PictureBox: I'm currently porting this application to Xamarin.Forms and using SkiaSharp for drawing. My UI ...
user avatar
-1 votes
0 answers
42 views

Xamarin.Forms App Crashes on Android 11 (Wiko T50) [duplicate]

I'm encountering an issue with my Xamarin.Forms app specifically on Android 11, particularly on a Wiko T50 device. The app installs successfully, but it crashes immediately upon opening. Here are some ...
user avatar
0 votes
1 answer
57 views

Permission dialog not appearing when using Xamarin.Essentials in Xamarin.Forms

I am encountering an issue with Xamarin.Essentials in a Xamarin.Forms project where the permission dialog for StorageRead is not appearing as expected. The code seems to execute certain parts but ...
user avatar
1 vote
1 answer
124 views
+50

Xamarin.Forms ListView not displaying items even when setting IsVisible to true

Description: I'm working on a Xamarin.Forms application, and I'm currently facing an issue with my ListView not displaying items even after setting IsVisible to true. I've followed the Xamarin ...
user avatar
0 votes
1 answer
36 views

Horizontal ScrollView in Xamarin.Forms with AspectFill-like Image Scaling

I'm currently working on a Xamarin.Forms project and trying to create a horizontal scroll view with images. I want the images to scale similar to the PictureBoxSizeMode.Zoom behavior in Windows Forms. ...
user avatar
0 votes
0 answers
53 views

Xamarin.Forms ListView Visibility Issue

I'm facing an issue with the visibility of ListView controls in Xamarin.Forms. I have a set of ListView controls, each associated with specific menu items. The idea is to show the relevant ListView ...
user avatar
0 votes
1 answer
69 views

Xamarin.Forms Image Not Displaying Despite Correct Configuration

I am facing an issue with displaying an Image in my Xamarin.Forms application. Despite following the correct configuration steps, the image is not showing. Here's a simplified version of my XAML and ...
user avatar
0 votes
1 answer
39 views

Set view's public attributes in XAML

I often like to decompose my XAML file into smaller parts without making my controls fully standalone views. So instead of <VerticalStackLayout> <Grid> <Label Text="item1&...
user2146414's user avatar
0 votes
0 answers
29 views

How to check for Do Not Disturb in Xamarin iOS [duplicate]

Currently I have a Xamarin Forms application which we use to produce an iOS application (Android will follow at a later date). Within this app we play sound but would like to be able to detect if the ...
Charlie's user avatar
  • 110
0 votes
0 answers
33 views

Xamarin.Forms ListView with Selectable Items and Checkbox-Like Functionality

I'm working on a Xamarin.Forms project, and I need to implement a ListView with selectable items, each having a checkbox-like functionality using a Switch. I have a custom data model (YourItemModel) ...
Frost Dream's user avatar
0 votes
0 answers
41 views

.net7 maui. Default FirebaseApp is not initialized in this process com.xxx.appName. Make sure to call FirebaseApp.initializeApp(Context) first

I'm trying to use the Plugin.Firebase notification service. I tried to follow the Plugin.Firebase documentation from github, but I get an initialization error. Also, I tried to follow other tutorials, ...
Plotva's user avatar
  • 1
2 votes
1 answer
35 views

Error in Xamarin.Forms: "Partial declarations of 'App' must not specify different base classes"

I'm facing an issue in my Xamarin.Forms project, and I'm seeking assistance in resolving it. I've encountered the following error: Severity Code Description Project File Line Suppression State Error ...
tomato bar's user avatar
-2 votes
0 answers
22 views

How to check Android/iOS device is Intune Managed device or not using MSAL Brokers

How to check Android/iOS device is Intune Managed device or not using MSAL Broker
user22799919's user avatar
0 votes
2 answers
61 views

Xamarin.Forms: Pass Enum Parameter to URL with Type Converter

In my page I have a Binding Property of enum type: [QueryProperty(nameof(EnumProp), nameof(EnumProp))] public partial class MyPage : ContentPage { public static readonly BindableProperty ...
Bernd Morgeneyer's user avatar
0 votes
1 answer
58 views

convert Fragment to Android.Support.V4.App.Fragment

I have this code: using Android.App; using Android.Content; using Android.OS; using MvvmCross; using MvvmCross.Droid.Support.V7.AppCompat; using MvvmCross.Forms.Views; using MvvmCross.ViewModels; ...
joisberg's user avatar
  • 175
2 votes
1 answer
59 views

Missing MainPage.xaml in Xamarin.Forms Project

I'm relatively new to Xamarin.Forms, and I've been working on creating a simple cross-platform app. I've noticed in many tutorials and documentation references to a MainPage.xaml file for designing ...
tomato bar's user avatar
2 votes
1 answer
88 views

Issue with Push Notifications on Xamarin Android - PendingIntent Error

I've implemented push notifications for my Xamarin application, and everything works smoothly on iOS. However, when the Android application is put in the background or closed, notifications fail to ...
Mammad's user avatar
  • 21
1 vote
0 answers
59 views

Intercepting media file requests from WebView and replacing them with local files in Xamarin Forms Android

I'm working on a Xamarin Forms project on Android that has a WebView which loads my website to play videos. Before loading the WebView, I'm downloading the mp4 files from the server into the app data ...
Arbi's user avatar
  • 63
0 votes
0 answers
38 views

Unable to activate Windows Store app on a Xamarin App that I am writing

I am having big problems with my Xamarin App lately For some reason my original app stopped compiling So, i created a new Xamarin Mobile Application and copied the source code logic to the new app. ...
Moshe Raab's user avatar
1 vote
2 answers
51 views

Unwanted space between username and password edittext at Login Page in xamarin forms app

That's my login page. "Kullanıcı kodu" means user code, "Şifre" means password. I don't want these space between user code and password edittext. I used devexpress ComboboxEdit and ...
Mert Altiparmak's user avatar
1 vote
1 answer
45 views

TabbedPage did not call OnAppearing() when switching tabs

I have a Main page(tabbed page) with 6 child pages, name them A, B, C, D, E, and F page here. When I press the Login button, it will enter into the Main page and show page A on the screen. public ...
Hannah.C's user avatar
0 votes
0 answers
30 views

How to Activate Speakerphone in Android 13 [duplicate]

Could someone please post a solution that ACTUALLY works on current Android 13. There are several posting but they don't work on Android 13 using Xamarin. I don't have Xamarin usage restrictions. ...
Golf Man's user avatar
0 votes
1 answer
30 views

Firebase library for .net maui when migrating from xamarin forms

I am migrating my xamarin forms app to .net maui. I used Xamarin.Firebase.Firestore and Xamarin.Firebase.Auth nuget package from microsoft to use firebase. What is the alternate for these in .net maui?...
anand's user avatar
  • 19
0 votes
1 answer
50 views

Setting BindingContext for ContentView inside CarouselView block CurrentItemChanged event handler from working

I have a CarouselView with 3 ContentViews inside: <CarouselView x:Name="CarouselObject" Grid.RowSpan="2" ItemsSource="{Binding ...
Serban's user avatar
  • 1
0 votes
1 answer
56 views

Xamarin failed to codesign, resource fork, Finder information, or similar detritus not allowed

I recently moved this Xamarin Forms app to a new developer account. It's been a few years since I've worked on it and I have not been able to get it to build. I recreated the provisioning profiles and ...
Josh Bula's user avatar
  • 373
0 votes
0 answers
31 views

Xamarin Forms: Background Task Limitations in iOS

I want to download and store the download data in my SQL DB while the app is in the background. While the app is in the foreground, this process usually takes 45-50 seconds. It TAKES AROUND 7-8 ...
MainakChoudhury's user avatar
0 votes
0 answers
38 views

Lazy loading of pins in Maui maps flickers/re-draws all the pins at every update

I am trying to lazy load a collection of over 300 pins I need to display on a map. Considering that my pins data is not much for an API to fetch, I load this information only once at the "...
Uderly's user avatar
  • 1
0 votes
0 answers
60 views

Xamarin Forms : App crashing in android 14

when i clean and rebuild it works fine but when i Build the application in android 14 mobile like google pixel 7 then the application gets installed but crashes after splash screen. I have added the ...
SUFIYAN S A's user avatar
0 votes
0 answers
48 views

ProcessSampleBuffer of Broadcast Upload Extension being throttled

I'm working on an Xamarin Forms iOS app that streams the user's screen using the Broadcast Upload Extension via WebRTC. It works well in the most part, but I'm seeing unusual behaviour when the method ...
Pete Jones's user avatar
0 votes
0 answers
34 views

Why is App Store app icon not being updated with new release?

I released my Xamarin Forms iOS app to the Apple App Store earlier this week. The app icon on my phone is correct, and the app icon in TestFlight is correct. The App Store listing, however, shows the ...
t_m27's user avatar
  • 103
0 votes
1 answer
60 views

MAUI: Save contact to device

I am trying to save a phone number to the local device in MAUI by Conditional Compilation. Below is my code: #if ANDROID using Android.App; using Android.Content; using Android.OS; using Android....
Matthew Pans's user avatar
1 vote
1 answer
34 views

Changing the visibility of TabBar elements in Xamarin

I have navigation in my TabBar, I need, if the user is not authorized, then "My profile" was not displayed, and if authorized, then "Registration" and "Authorization" ...
Данил Грицан's user avatar
0 votes
0 answers
21 views

How to deeplink internal application using Google Lens qr code in android

How to deeplink internal application using Google Lens QR code in android what need to be in qr code only package name ? is that possible to open last activity with in the application deeplinking ...
Rajagopal M's user avatar
0 votes
0 answers
22 views

Open Whatsapp using a common code ( android and ios) in xamarin form 4.8.0

I am working on already developed application on xamarin forms 4.8 (accept that I've no previous experience in xamarin), I need to add functionality to open whatsapp if user clicks the link. the ...
Nazish Ali Rizvi's user avatar
0 votes
0 answers
51 views

setInexactRepeating of AlarmManager in not working for Android 12 and below

I have a requirement to sync data back to API in every one 1 and for that I am using AlarmManager's SetInexactRepeating method. It is working fine and invoking the method in every 1 minute but if I ...
Dharmendra Kumar's user avatar
0 votes
1 answer
96 views

updating my project from xamarin forms to maui MasterDetailPage not found

I am updating my xamarin forms to maui and ran the upgrade assistant tool. I an getting some errors about the MasterDetailPage not being found. Is there a different way for me to do this in maui ...
Jefferson's user avatar
  • 127

1
2 3 4 5
692