James Montemagno: Guide to Add Windows Phone to Xamarin.Forms 1.3+ Projects

I am a huge fan of Xamarin Studio and live inside of it around 50% of my development time. When I need to do library or Windows development though I head over to my good friend Visual Studio. Luckily the same exact project and solutions open in either IDE so it makes syncing with GitHub extremely easy. When I start up a Xamarin.Forms project I usually do it from Visual Studio so it spins up an iOS, Android, and Windows Phone Project. However, there are times that I am in XS, which doesn’t create the Windows Phone project so I need to add it after. Rob Gibbens wrote a great guide on adding Windows Phone projects to Xamarin.Forms in this case, but it is for the older Xamarin.Forms model pre 1.3. It is still a great guide and my guide follows this closely but updated with the new Application class requirements. Additionally, since Rob’s post we did release support for Windows Phone/Store RT apps and that process was documented as well, however Silverlight was left out, so let’s do it!

Going into this you will need at least Windows 8 and the Windows Phone SDK for Windows Phone 8.0 Silverlight.

Add Windows Phone Project

This is probably the easiest part of the process as all you need to do is right click on your Solution node and select Add -> New Project… From there you will need to find the Blank App (Windows Phone Silverlight) option under Installed -> Visual C# -> Store Apps -> Windows Phone Apps -> Blank App (Windows Phone Silverlight).

I personally name it: ProjectName.WinPhone and I turn OFF App Insights. You will then be prompted to select which version of Windows Phone to use. Simply select Windows Phone 8.0.

Restore NuGet Packages

You can always manually search for Xamarin.Forms in the NuGet Package manager, however it is easiest to actually right click on the SOLUTION node and select Manage NuGet Packages for Solution… This will allow you to see ALL NuGet packages installed in your projects and add them into your Windows Phone project. Simply Find Xamarin.Forms in the list, select Manage, and check ProjectName.WinPhone.

You may have additional NuGets installed so be sure to add those to your Windows Phone Project as well.

Fix Toolkit.Content

Xamarin.Forms uses the all powerful WPToolkit for some of its controls. When we added the Xamarin.Forms NuGet it also installed the WPToolkit NuGet and some new images were added under Toolkit.Content. We must select all of the files in this folder and mark the Build Action as Content and the Copy to Output directory to Copy always.

Add Portable Class Library or Shared Project Reference

Of course now we need to add in our shared code. Simply right click on the Windows Phone project’s references and find your “ProjectName” portable class library or Shared Project.

Modify MainPage.xaml

Xamarin.Forms 1.3 changed the normal flow of Xamarin.Forms applications include the Windows Phone’s main page, which is now inherits from FormsApplicationPage. We will now add in a custom xmlns of forms and then inherit from FormsApplicationPage:

Ensure you change “ProjectName” with your actual project name.

Modify MainPage.xaml.cs

Of course there is a bit of code behind to modify in the MainPage.xaml.cs to reference this new FormsApplicationPage and also call the LoadApplication of Xamarin.Forms. Simply replace the entire class with the following:

Ensure you change “ProjectName” with your actual project name.

You should be all set at this point with your Windows Phone project ready to go! 

Xamarin: What’s New in Google Play services

There are a plethora of amazing APIs built right into the core operating system to take advantage of when developing for Android, and Google Play services (GPS) allows for the addition of even more unique experiences. What is Google Play services? GPS is a continuously updated library from Google that enables adding new features to […]

The post What’s New in Google Play services appeared first on Xamarin Blog.

Xamarin: Build and Debug C++ Libraries in Xamarin.Android Apps with Visual Studio 2015

Today, the Microsoft Hyperlapse team shared the story of how they developed their app with C++ and Xamarin. Microsoft Hyperlapse Mobile turns any long video into a short, optimized version that you can easily share with everyone. It can transform a bumpy bike ride video into a smooth and steady time-lapse, like this one from […]

The post Build and Debug C++ Libraries in Xamarin.Android Apps with Visual Studio 2015 appeared first on Xamarin Blog.

Xamarin: Build and Debug C++ Libraries in Xamarin.Android Apps with Visual Studio 2015

Today, the Microsoft Hyperlapse team shared the story of how they developed their app with C++ and Xamarin. Microsoft Hyperlapse Mobile turns any long video into a short, optimized version that you can easily share with everyone. It can transform a bumpy bike ride video into a smooth and steady time-lapse, like this one from […]

The post Build and Debug C++ Libraries in Xamarin.Android Apps with Visual Studio 2015 appeared first on Xamarin Blog.

James Montemagno: 8 Weeks of Travel: Dev Days, Conferences, Podcasts, & More!

It has been a few busy months! For the last two months I have been in the air and on the road talking all about cross-platform mobile development with Xamarin, and it has been a blast! Our first leg of Xamarin Dev Days is just about to wrap up and it has been an absolutely amazing experience meeting so many incredible developers. I can’t wait to do it all again very very soon 🙂

Then comes the list of conferences! //Build, Ignite, Chicago Coder Conference, DevIntersection, Twilio Signal, VS Live Austin, and NDC Oslo! I feel as though my goal of being everywhere is mission accomplished! If you weren’t able to attend these events don’t worry as there were several recordings from NDC Oslo now available!

Xamarin.Forms: Native iOS, Android, & Windows apps in C# & XAML

In this session I give a brief overview of Xamarin.Forms and walk through File->New App!

CocosSharp-2D Games in C# that run everywhere

In the past I used to make awesome video games for the Xbox 360 and I am back at it with 2D games in C# with CocosSharp for iOS and Android!

C# and Twilio-powered iOS & Android Experiences!

Check out this session that I delivered at Twilio Signal on integrating amazing Twilio functionality into your mobile apps.

Podcasts!

No time to watch a full video? I gotcha covered with some awesome podcasts that I have been on recently:
Xamarin Podcast: Covering Android M and Google I/O 2015

MS Dev Show: An amazing amazing show covering nearly every single aspect of Xamarin!

Apps!

I have been doing a lot more than just talking as I have also been releasing some updates to apps and some new ones as well. Coffee Filter, my open source coffee finding application is now available on iOS thanks to the work of some Amazing Xamarins (Oleg, Colby, & Aaron). Additionally, I have updated the Android version to add in the amazing new Google App Invites feature! Check that out.

Wallace B. (Wally) McClure: Navigation with Xamarin.Forms

Url:

Xamarin Forms was released a bit more than a year ago. Since then, the product has grown, gone through rounds of features and bug fixes, and feels very much like it’s ready for use in applications. And since then, mobile apps are no longer relegated to one screen. Mobile apps should work on multiple screens of functionality. And even then, users must be able to navigate between screens in a standard way. In this column, I’ll look at how Xamarin Forms can be used to implement the various approaches to navigating on various devices.

Note: In early-to-mid 2014, this column featured articles on standard navigation in iOS and Android, but this column will show how to implement standard navigation with Xamarin.Forms. Also, graphics are not my specialty — please excuse the graphics.

Wallace B. (Wally) McClure: Startups and Technology Article 1 – Getting Your Application to Market

https://visualstudiomagazine.com/articles/2015/06/23/developing-and-selling-apps.aspx

You are a developer.  You are at the top of your game.  You can make bits do magical things over the web.  Your database can run circles around anyone else’s. You’ve got a great job. 

Unfortunately, that job is at a soulless corporation. That company sells widgets that have changed very little in the last 125 years. There is a ceiling for you as a developer at this company. You have users in marketing and production. Some of them you love, some you loathe. You long for something more. 

You hear about people making lots of money by starting product companies, but you aren’t quite sure what you have to do. You watch Silicon Valley on HBO. You hear about this thing called Y Combinator. Then, one day it happens, you hit upon a great idea. It’s something that you see all kinds of need for. What should you do now?

Xamarin: Android M Preview Now Available

Today, we’re excited to announce the preview release of Xamarin.Android featuring support for Android M’s developer preview. Android M is an exciting release, that introduces several new features for Android developers including new app Permissions, Fingerprint Authorization, enhanced Notifications, Voice Interactions, and Direct Sharing. Installing the Android M Preview Starting with Android Lollipop, Java JDK […]

The post Android M Preview Now Available appeared first on Xamarin Blog.

Xamarin: Android M Preview Now Available

Today, we’re excited to announce the preview release of Xamarin.Android featuring support for Android M’s developer preview. Android M is an exciting release, that introduces several new features for Android developers including new app Permissions, Fingerprint Authorization, enhanced Notifications, Voice Interactions, and Direct Sharing. Installing the Android M Preview Starting with Android Lollipop, Java JDK […]

The post Android M Preview Now Available appeared first on Xamarin Blog.