James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Xamarin.Forms

Embedding Xamarin.Forms into a Xamarin Native App #TheFuture

You know I love Xamarin.Forms, but I also absolutely love Xamarin Native with iOS Storyboards, Android XML, and all of that UWP goodness. When you want to build an app that opens in sub-2 seconds, super optimized, and takes advantage of every custom control and animation out there (especially with material design) you have to go Xamarin Native. That is why the next evolution and favorite new feature, Xamarin.Forms embedding, of Xamarin.Forms enables you to embed any Xamarin.Forms ContentPage int…

James Montemagno James Montemagno
Getting started, step by step, in under 15 minutes!

Yesterday, we announced the Xamarin Live Player for both iOS and Android which includes the Live Player Extensions for both Visual Studio 2017 and Visual Studio for Mac enabling you to get started with mobile development with just a device! The Live Player apps let you debug your apps and make live edits and see them reflected live on your device. Your code runs inside of the Live Player app, so no emulator needed and everything happens over WiFi, so you don’t even need to plug anything in.

To get a good grasp of how the app works check out Miguel and me on stage at Build 2017 on the Future of App Development with Xamarin.

Getting started with the Live Players is super simple and we have AMAZING DOCUMENTATION that you should read to get started.

Now once you have things running be sure to read through the Limitations and the Troubleshooting guide if you run into any issues and join the discussion on the forums.

Update 1: New Xamarin Live Player for Android Walkthrough video:

Update 2: Want to know how the Live Player was built? Listen to Frank and I on Merge Conflict discuss:

Getting Started with the Xamarin Live Player

Getting started, step by step, in under 15 minutes!Yesterday, we announced the Xamarin Live Player [http://xamarin.com/live] for both iOS and Android which includes the Live Player Extensions for both Visual Studio 2017 and Visual Studio for Mac enabling you to get started with mobile development with just a device! The Live Player apps let you debug your apps and make live edits and see them reflected live on your device. Your code runs inside of the Live Player app, so no emulator needed and e…

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

Using Visual Studio Mobile Center with a Azure DevOps (VSTS) Code Repo

So, this is pretty awesome! Today, the Mobile Center team rolled out a huge update to Visual Studio Mobile Center [http://mobile.azure.com]enabling you to build your iOS and Android apps in the cloud from any GitHub, BitBucket, or Azure DevOps (VSTS) code repository! This is great because VSTS offers FREE unlimited private repos for your code with a git backend. Mobile Center offers up build, test, distribute, analytics, and backend services for any mobile app written in any language. It couldn’…

James Montemagno James Montemagno

Device.OS is Obsolete in Xamarin.Forms... What to do?!?!

If you just updated to Xamarin.Forms 2.3.4 [https://blog.xamarin.com/announcing-xamarin-forms-stable-release-2-3-4/]you may have noticed and be freaking out that you have tons of green squiggles that Device.OS and TargetPlatform are obsolete. This was all done in regards to the new changes for OnPlatform [https://github.com/xamarin/Xamarin.Forms/pull/658]. We can see here that it says to use RuntimePlatform isntead, which is a string… but how do you use it??!?! If you hover over TargetPlatfo…

James Montemagno James Montemagno

Xamarin.Forms Android Selected & Unselected Tab Colors

I get a lot of questions about Xamarin.Forms. One of my most popular blogs was about spicing upiOS tabs with selected and unselected tab colors [http://motzcod.es/post/138225183932/tintcolor-selectedimage-xamarin-forms-ios], and since that day developers have been asking about Android. Well, to be honest I was always against adding icons to material tabs in Android, but developers want to do it, so here is how you can, with a Custom Renderer for a Tabbed Page. Here is what it will look like at t…

James Montemagno James Montemagno

New Xamarin.Forms Item Templates!!

I just installed the latest RC for Cycle 9 [http://releases.xamarin.com]and was extremely surprised and happy to find some brand new Item Templates for Xamarin.Forms including: * Carousel Page * List View Page * Map Page * Tabbed Page Along with the awesome new project template creation! When you add a page it will scaffold out your entire ViewModel too!!! Amazing! Just by adding the ListView Page you get this: New Tabbed Page: I did a little Motz Codes Live walk…

James Montemagno James Montemagno

Opening App Store for Ratings on iOS and Android

Sometimes you want to ask your users to rate your application. There are several components out there that will open a dialog box and prompt for ratings, but sometimes you don’t want to stop the flow of your app and throw it in their face. What I do in my application is simply add a section on my settings page asking if they would like to rate the app. When pressed I launch the app store directly to the review page: Update! This is now easier than ever with my Store Review Plugin [https://git…

James Montemagno James Montemagno