Monthly Archives: October 2019

InputTransparent vs IsEnabled in Xamarin Forms

One of the problems in Xamarin Forms is that it is not possible to setup the text colors of disabled elements (elements where IsEnabled property is set to false). However you do not need to set the IsEnabled property to disable it, there is an alternative property called InputTransparent. Setting InputTransparent to true (by default… Read More »

TIL: Double.Equals works with Double.NaN values

The .NET standard defines that the double value of NaN (Double.NaN) will never be equal to any other Double value, including itself. In other words: double first = Double.NaN; double second = Double.NaN; bool equal = first == second; // false; However this does not hold for Double.Equals. Double.Equals checks for object ‘Identity’ and not… Read More »