Current device sim phone number
Hi, I am trying to get the current device sim phone number in platform neutral way, I have tried: Xam.Plugin.Contacts & DeviceInfoPlugin plugins but could not find relevant api for it. Any help...
View ArticleHow to get button click parameters to ICommand in model view?
In button click even it passes two parameters to the code behind (object sender, EventArgs e). private void CheckBox_Event(object sender, EventArgs e) {} But if I use Command instead of click event how...
View ArticlePicker Unfocused event on UWP
Hi, I have a problem with Xamarin Forms Picker. I am using unfocused event to open a popup when user selects an item. On Android works well, when picker is closed event is fired but, in UWP, the event...
View ArticleHow to video call via Twilio from Xamarin Forms
Hello everyone. I want to use Twilio in a Portable Xamarin Forms project. I have seen some approaches to the bindings here: github.com dkornev TwilioXamarinBindings I can use that app as is, but it is...
View ArticleSet rectangle's values to AutoSize in XAML?
Hello, How do I set rectangle values to Auto in XAML? Here's an example of what I want to achieve in XAML, the shorter syntax I can get the better. var label = new Label();...
View ArticleUsing ResourceDictionary from another assembly compile error
I'm trying to use ResourceDictionary from another assembly in App.xaml like this: <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries>...
View ArticleCss or Xaml Styling
Since I've started with Xamarin, I've always been using xaml for styling. I was wondering if I should give it a try to css styling. It's true that css looks much cleaner and readable, etc. But I have...
View ArticleHow to MessagingCenter.Subscribe to same message from multiple senders
I want to subscribe to a message that can be sent from multiple ViewModels. Is there a more elegant solution than subscribing individually for each ViewModel, like I do below?...
View ArticleButton Command not triggering inside view model
I have a Button in my view and I have a View model bind to that view. My problem is, command not triggering inside the view model. My view Model..... **iPayBtnCommand ** is the command .... namespace...
View ArticleXamarin Forms WebView and Gesture Recogniser issues with Android
Hello all, I have developed an app with WebView to display local HTML content. I have also added Swipe GestureRecognizers to the WebView to update the source binding content to load new HTML files when...
View Articlecan you run xamarin ui Test (iOS) on visual studio 2019
Hi wondering if you can run a xamarin ui Test (iOS) on visual studio 2019 using a mac mini connectivity launching a simulator? I keep reading contradictory statements about it. Could somebody clarify...
View ArticleShould I prefer using x:Binding over Binding?
Why do both of them exist? I believe the first one is compiled binding? I turned on XAML compilation for every XAML file, but should I also start using x:Binding everywhere I use Binding? And there is...
View Articleblur background effect for frame
Hello, I need an effect to blur the background for frame or stacklayout. Is there a native render that can do this for android and ios? Thx
View ArticleXamarin.Forms android app won't build anymore after adding...
After adding the nuget package "Xamarin.Firebase.Messaging" to a xamarin.forms application in VS2019 it wont build anymore. You can replicate this issue by creating a new xamarin.forms application and...
View ArticleDisplaying badge in Xamarin Forms Android Application
Hi Guys, I have a requirement to set custom value to application badge icon. I am using Xamarin.Badge.Plugin , Plugin.Badge. But I was not able to set custom values to badge. I have two android devices...
View ArticleYou MUST call Xamarin.Forms.Init(); prior to using it
In my app.xaml.cs I create a new page. public App() { InitializeComponent(); MainPage = new NavigationPage(new WrapLayoutPage()); } This page calls a static class, which uses the DependencyService to...
View ArticleAny Solution for PDF reader
hi I am unable to find a solution for for PDF reader in Xamarin forms. The solution provided on xamarin website https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/controls/display-pdf/...
View ArticleThe type or namespace name 'Android' does not exist in the namespace...
Hi guys. I Updated my nuget packages few days ago to new versions. but my Android project has 2 errors in MainActivity.cs: 1: The type or namespace name 'Android' does not exist in the namespace...
View ArticleTasks don't run asynchronously
Hi, i have a problem, after pressing button i have a simple "timeout" while loop. It should, for 10 seconds, wait for connection task to complete, but task completes after while loop ends Nothing...
View ArticleHow do I change the Resource Dictionary values programmatically?
I have this in my App.Xaml <OnPlatform x:Key="XFactor" x:TypeArguments="x:Double"> <On Platform="iOS" Value="0.25" /> <On Platform="Android,UWP" Value="0.26" /> </OnPlatform>```...
View Article