This article as previous ones (Frame With Padding, Frame Outline Problem, Inheritance from Implicit Styles) also will be about Xamarin.
This time we will inspect Master-Detail page control/mechanism. You can find official documentation for this control here.
Quick spoiler: I never used this in any production application. Why? I will explain. Whole article will be to explain why this is just not worth your time. In this and subsequent articles I will introduce much better solution. Continue reading “Xamarin Master-Detail Page”
Next article about bugs in Xamarin will touch topic of Styles. Styles for all of controls not only Frame (and if you wondering why Frame you should check first two articles about Xamarin here and here).
First of all if you are using Styles in Xamarin you probably know how to define implicit styles. If not here is a sample:
<Setter Property="FontSize" Value="45" />
Continue reading “Xamarin Style based on implicit Style”
This is another article in mini series of Xamarin bugs and workarounds for them 🙂 Previous one you can find here.
This one is again about Frame control. I promise that another one will be about something else B)
Issue can be observed when you bind BackgroundColor property of Frame control and something will trigger change of view model source property binded to background color. Continue reading “Xamarin Frame and disappearing Outline”
If you are a bit advanced with Xamarin you should already now that there is possibility of styling your controls almost like in WPF.
Almost, because there is a few strange bugs involving this. For example there is a problem with styling a Padding property in Frame. Consider following Xaml of Xamarin application (I tested it in Android): Continue reading “Xamarin Frame and Style with Padding”
In on of my projects I had make an interface between database and web service in C# code.
One of problem I had to face was need to cast strings to enumerable types, because of simple fact that database have no idea what is an ‘enum’. Yes simplest mapping between an enumeration and database type is integer. It is simplest but in my idea not best. For example I really do not remember (or do not WANT to remember) what is the meaning of 4 integer value in case of package shipment status. Continue reading “Safe cast string to enum”