Xamarin.Forms Shared Project XAML Headaches

Xamarin.Forms Shared Project XAML Headaches

At first I was going title this post Creating a Xamarin.Forms Shared Project App? Do This First! And the contents of that post were going to solve one of the problems that every developer faces when creating a Forms application using shared projects. Namely, that of referencing custom controls created in the shared project within XAML when running under both iOS and Android. Not too complicated a subject, as it’s a very easy fix … but as you may have guessed by the original title of the post – I have a tendency to forget to “implement the solution” right away. I figured by writing it down, I would never forget again – saving myself a moment of “what the ???” later. But then this morning (about an hour ago as I type this) I found that the new Xamarin Studio 6 gives a workaround / solution to this … by default! Instead of having that let me off the hook and not writing at all – I still wanted to outline the problem and the quick solutions – both the one I was using and the one Xamarin Studio 6 provides. The Problem Whether you need to extend one of the built-in Xamarin.Forms controls, or create a brand new one altogether, an app of sufficient complexity will call for a custom control at some point. Once the control is built, in order to use it, you need to reference it in your XAML page. In order to do so, the following line is added to the XML attribute section for the content page or view: xmlns:local="clr-namespace:DoThisFirst;assembly=DoThisFirst" The clr-namespace...
Xamarin Evolve Redux

Xamarin Evolve Redux

Xamarin Evolve was over a month ago … and I’m first getting around to writing about it now?!? Well, what can I say – it’s a busy world out there! But there were enough announcements and enough cool events that happened that I still wanted to comment on them – even though it’s well after the fact! So let’s dive into the big news that came out of Evolve … I Spoke!! Ok – my session on developing apps for AppleTV and tvOS may not have been the biggest news to come out of Evolve, but it was pretty exciting for me. The whole behind the scenes operation at a major conference is really unbelievable, from the knowledgable people that work to pull it off, to the amount of equipment – truly a sight to behold. So I want to send a thank you to Xamarin for having me speak, it was a great opportunity, and I can’t wait until next time! And yes, I will have a series of blog posts coming on tvOS development using our favorite language … C#! But in the meantime – check out my session above!! (And if you can’t get enough, I’ll be giving the same session at That Conference in August!) The Other News Many other announcements were made during the opening day’s keynote at Evolve, which is also posted on YouTube. I won’t go through every single announcement, but I will touch one some of the ones that I think will made day to day life much easier for Xamarin developers. Starting with the big one… Xamarin.Forms XAML Previewer If...