James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

XAML

Code Generation from XAML in Visual Studio is Mind-blowing Awesome

The more and IDE or code editor can do for you the better I say. Visual Studio has been crushing it with new refactorings, IntelliSense, and IntelliCode [https://visualstudio.microsoft.com/services/intellicode/], one of my favorite features ever. One thing that I have always been hoping for as a XAML developer is deeper connectivity between the XAML and the View-Model. We have seen increased IntelliSense in this area, but with the release of Visual Studio 2019 v16.9 [https://devblogs.microsoft.c…

James Montemagno James Montemagno

Xamarin.Forms Design Time Data Tips & Best Practices

One of my favorite features of building applications with XAML is the ability to use design time data to preview it inside the IDE. Recently in Xamarin.Forms 4.0 the team introduced an official pattern to specify design time properties, controls, or just about anything else. It is a really neat feature that I have been using on my live streams and in my apps. There is some really great docs [https://docs.microsoft.com/xamarin/xamarin-forms/xaml/xaml-previewer/design-time-data?WT.mc_id=designtime…

James Montemagno James Montemagno

Xamarin.Forms: How to Clip Images with Rounded Corners

I love watching trends in mobile design. Currently gradients are all the rage, but two trends that have been around for a while are rounded corners and circular images. A long time ago I created the Circle Image plugin [https://github.com/jamesmontemagno/ImageCirclePlugin] for Xamarin.Forms that many developers know and love, but did you know that you can just use built in controls to get a circle or rounded corners? All you have to do is use a frame [https://docs.microsoft.com/xamarin/xamarin-f…

James Montemagno James Montemagno

Why Xamarin.Forms Embedding Matters

Last week I wrote about Xamarin.Forms Embedding [http://motzcod.es/post/161785997897/embedding-xamarinforms-into-a-xamarin-native-app] , a great new feature of Xamarin.Forms, that enables developers to convert a Xamarin.Forms ContentPage into an iOS UIViewController, Android Fragment, and a UWP Page. I walked through the current setup and a real world example of adding Xamarin.Forms details pages to my Xamarin Native application which previously only had native Storyboards and Android XML pages.…

James Montemagno James Montemagno

Important OnPlatform Changes in Xamarin.Forms

Last week I blogged about the important changes to Device.OS [http://motzcod.es/post/159463651162/device-os-xamarin-forms-obsolete-runtime-os] in the latest version of Xamarin.Forms. Well, I am back with some other changes from that same exact Pull Request [https://github.com/xamarin/Xamarin.Forms/pull/658] that have to do with OnPlatform in code and XAML that use the new Device.RuntimePlatform. So, what is OnPlatform? It allows you to set properties on elements or run specific code based on…

James Montemagno James Montemagno

Xamarin.Forms XAML Previewer Design Time Data

UPDATE Checkout my newly updated blog on Design Time Data best practices [https://montemagno.com/xamarin-forms-design-time-data-tips-best-practices/] that are updated for the most recent changes in Xamarin.Forms. Original Post The most annticipated announcement of Xamarin Evolve 2016 had to be the Xamarin.Forms xAML Previewer. Enabling you to see a live preview of your Xamarin.Forms XAML without having to run it on a simulator or device. Simply write some XAML and there it is running on an iOS…

James Montemagno James Montemagno

Enhancing Xamarin.Forms ListView with Grouping Headers

Sometimes a plain ListView just isn’t good enough. You can easily spice it up with images [http://motzcod.es/post/88692272607/extending-xamarin-forms-monkeys-app-with-xaml-and] or custom cells [http://motzcod.es/post/93792500152/custom-listview-viewcells-in-xamarin-forms], but what about organizing the data. With C# and LINQ it is easy to sort your list, but how about giving it some visuals? How about some headers? With Xamarin.Forms it is extremely simple to add in headers and to create a cust…

James Montemagno James Montemagno