How to do unit testing in xamarin forms?
I created one project using xamarin forms. There I need to do unit testing on following methods private int _valueA; public int ValueA { get { return _valueA; } set { _valueA = value;...
View ArticleHow to know if a Label has been tail truncated?
I set MaxLines on a label to 5 and LineBreakMode to TailTruncation. How can I know if the text was indeed truncated so that I can show a "View More" button? Note that I'm setting FormattedText since I...
View ArticleHow to get Navigating event of WebView in ViewModel in Xamarin.Forms ??
i want to get Navigating event of WebView in ViewModel in Xamarin.Forms. Please tell me how i can achieve it ??
View ArticleList was not found. Verify that you are not missing an assembly reference
Hi, Why I keep getting: List was not found. Verify that you are not missing an assembly reference although the: using System.Collections.Generic; I deleted the obj and bin files and rebuilt the...
View ArticleXamarin.Forms bug? System.ObjectDisposedException: Cannot access a disposed...
Hi, My Android Xamarin.Forms application uses a Navigation stack to display various views, I often have a list on a screen (A) that once a cell is clicked I push onto the stack a new screen (B), the...
View ArticleAllow the Editor control to grow as content lines are added
I have been modifying the Todo app that uses Forms and replaced the note Entry class with the Editor class, so the todo can hold multiline notes. However the editor does not expand as new lines are...
View ArticleHow to get System.Globalization.CultureInfo.OptionalCalendars to have > one...
I make use of CultureInfo.OptionalCalendars in order to support both Gregorian calendars and others, such as the Hijri and Hebrew calendars. On Windows platforms (UWP desktop, UWP phone, WinRT 8.1,...
View ArticleHow to draw more than one circle on map?
Hi everybody! I have follow docs.microsoft.com to draw a circle. The circle only draw one time when page loaded. I need to draw more and change radius of circle with out reload page! Now: 1. How to...
View ArticleFrame + Images == Round Image? .....false, just an image with the corners cut...
Goal is to have images inside a circle. Currently, the image will appear, but have the corners will be cut off. I tried to increase the size, but the image got resized to the smaller than Frame's...
View ArticleAndroid app icon not changing
Hi, I have uploaded this app on Play Store: https://play.google.com/store/apps/details?id=com.softnames.samana I changed the icon everywhere to my icon but I keep getting the Xamarin default icon when...
View ArticleDependencyProperty equivalent for Xamarin Forms.
I'm writing a XAML + MVVM project for testing porpuses. So far i haven't had any problems trying to port my Windows code to Xamarin except for the DependencyProperty. Is there a way to get it working...
View ArticlemacOS High Sierra and XCode 10.2 - A silent coup de grâce from Apple
Hi guys, I am quite frustrated at the moment.. why? Because I updated the Visual Studio for Mac on my Macbook Pro Early 2011 15" that cannot support Mojave and guess what? It keeps saying, this version...
View ArticleTest builds vs Production builds
With our mobile app we connect to a service. During the testing phase we connect to a test service and then when we are ready to publish to the ios and android stores we change the baseAddress uri to...
View Articlein iOS, to use Platform Effect, I got "no default constructor" exception....
I wanted a small tweak to how the keyboard worked in iOS and so decided to use an EFFECT. But, I ran into trouble: System.MissingMethodException, no default constructor, on my iOS class implementing...
View ArticleSetting Detail of Master Detail page causes flickering
Hello! I'm trying to prevent flickering from happening when I change the Detail in MasterDetailPage. In the constructor of the page I create all the required pages like so : aboutPage = new...
View ArticleAdUnitId Set For Admob Without MVVM
I have followed https://xamarinhelp.com/admob-xamarin-forms-display-google-ads-mobile-app/ and set upAdMob for my Xarain Forms app and it displays on both iOS and Android. The problem is trying to set...
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 ArticleSimple label wont show in ios simulator
I'm using the new shell with buttom nav. One of my pages is a content page. The content page wont show the label in my code. Works fine on android. I tried many things, one of them is setting the...
View ArticleAccessibility ignored in mostly controls (labels, entry, pickers)
Hello guys, I'm trying to understand how to use accessibility in some controls, I suspect that is not working, in particular: inside a label, with IsInAccessibleTree set to true, Name and HelpText are...
View ArticleUseSafeArea doesnt work for modal page?
Does UseSafeArea work for modal pages on xamarin.forms ? if i run it on ios simulator, it has no effect for me. should i use padding on modal pages?
View Article