Popular posts from this blog
From XAML to Xamarin
Recently I started exploring Xamarin Cross-platform framework ( Xamarin.Forms ) to develop apps for Android, iOS and UWP. There are couple of frameworks for doing cross-platform mobile app development, however, as I am dominantly a C#/WPF developer, I chose Xamarin.Forms. This decision turned out to be the best decision, mainly because I had vast experience using Xaml and C# and saved 80% of my learning time. It was a great experience with Visual Studio integration of Xamarin and It took only 4-5 days to get acquainted with Xamarin. I will soon be uploading my app on Play stores, but first let me share the Pros and Cons I found: Advantages: Xamarin & .NET are very well architectures. C# is a fantastic language. Being able to use C# to develop on not just one, but 3 platforms. Since 2017, its completely Free. Xamarin allows to take my knowledge of C# and apply this to the iPhone and then Android. Can use existing c#/.net knowledge in iOS and Android. ...
How UI Layout Works
Few days ago, I was stuck with a GUI issue where WPF controls were not getting rendered in memory. Everything was arranged properly in a Visual Tree of parent control but still somehow child was not able to draw with custom size. So, to solve this issue I took help of a book called WPF Control Development by Kevin Hoffman. I thought I should share how this layout process works under the hood. So there it is: ___________________________________________________________________________ The layout system in WPF is a conversation between the layout container and its children. This conversation takes place in two stages that are often referred to as passes. This two-pass approach starts at the root of the visual tree and recursively traverses the tree until all containers have been given the chance to perform the layout process with their children. In the first pass of the conversation, the parent asks its children how much space they need to display themselves. The par...
Comments
Post a Comment