Friday, November 13, 2015

How to Preview your Xamarin.Forms XAML in Xamarin Studio

In my work as a Customer Success Engineer at Xamarin, I demo the tools we provide daily. One that has gained immense popularity since launch has been, without a doubt, Xamarin.Forms. For those of you new to Xamarin development, Xamarin.Forms is a framework that enables you to write your mobile UI for Android, iOS and Windows phone in a shared code layer using either C# or XAML. Many developers see this as a real asset as greater code share suggests shorter development times and getting your app faster to market. XAML based UI development is also something that WPF and C# developers are already familiar with so that means their experience will help them get up and running with mobile sooner.

With that in mind, one thing that developers desire is rapid feedback and development. At the time of this writing Xamarin.Forms currently is a programmatic solution only. That means, no visual designer or previewer to view your UI in progress. That means that the only way to ensure your UI looks good is to build and deploy your app to either an emulator or physical device. While certainly a possibility, this is not the fastest process, especially if you are trying to make minute changes and get immediate feedback.


One solution to this that has been made available is a tool call the Xamarin.Forms Player, written by Daniel Cazzulino, who also happens to be a developer at Xamarin. What this tool does is installs a plugin to Visual Studio that allows you to pair your Visual Studio instance to either an emulator or device. Then, while you are writing the XAML portion of your application, you can actually quickly preview the results live without doing a full build and deployment of the application. This serves as a great solution to many developers. While the Visual Studio add-in has been available for a while, I was recently made aware of this also being published as an Add-In for Xamarin Studio and wanted to write a quick guide on how to get it set up.

From what I understand about the tool, the Forms Player works as a pub/sub application where multiple devices will subscribe to an IDE through a paired code between your IDE and an configured application running on device. Then, as you are developing your XAML you can quickly do a compile and publish. When the IDE publishes an update, each subscriber running will update and display the result. Really cool.

There are two main parts to getting this set up

I. Install the Add-In within Xamarin Studio (On Mac)

Select Xamarin Studio -> Add-In Manager -> Gallery Tab. From there search for Forms Player, it should appear under Mobile Development

II. Create and Install a Forms Player application on device.

Here is where we set up the subscriber side of things. There are a few ways you could do this, including compiling the code from GitHub and installing it, but this approach is pretty simple.

1) Create a new cross platform Xamarin.Forms application. I would name it something like "Forms Player" or maybe equally memorable. PCL or Shared Project should be fine.

2) Add the Xamarin.Forms Player NuGet to your Android and iOS Targets. Right click both Android and iOS Projects-> Add-> Add NuGet Packages. Make sure in the bottom right you check the "Show pre-release" box.


3) Update  new App () in MainActivity.cs and AppDelegate.cs to be new Xamarin.Forms.Player.App ()






As a side note, you may need to modify some of the built references on the iOS project. When I set this up, it complained, initially, about duplicate references to System.Runtime, System.Threading and System.IO. Removing them from the References-> From Packages folder got it running fine.

4) Deploy this application to the devices/emulators you want to support. You will see a Home screen like this:

  
iOS on left, Android on Right
III) Start debugging your app

Now that you have these installed, what you will do is pair them. You do this by selecting the Forms Player menu and select Connect. This will create a running Session ID, which you will input in the running application you have previously installed above.

Open up the Forms application you want to work on. When you open the .xaml file, you will notice that the "Publish" option from the Forms Player menu will no longer be greyed out. Each time you select publish, or hit the hotkey, while you have a .xaml file loaded in your IDE, it will load that current XAML to any device with the app running and session paired, and then preview it.

And there you go! Hopefully you found this useful and it will help you build and ship higher quality Xamarin.Forms apps faster.

76 comments:

  1. Hey, have you seen this?

    http://gorillaplayer.com

    ReplyDelete
    Replies
    1. I have, don't have an invite currently however. Curious to see how it runs

      Delete
  2. Hi James,

    I'm getting an error with XamlC task.





    The error says that the "XamlCTask" doesn't found. Any ideas about this error?

    Thank you so much!!

    ReplyDelete
  3. Currently the most sought after technology for cross platform mobile development is Xamarin

    ReplyDelete
  4. office.com/verify, www office com setup, office.com/myaccount, Office Com Setup, office.com/productkeycard, Office Setup, setup.office.com, Office Com Set Up, office 2017 download, Office Setup Enter Product Key,
    office.com/setup

    ReplyDelete
  5. McAfee Installation is such an easy or simple process as you have to make sure that above-mentioned prerequisites should be fulfilled before getting started with the McAfee Activation Process.

    mcafee loginount

    ReplyDelete
  6. If user wants to use the Microsoft Office online then open the web browser you are using on your system and visit office.com/setup. Login to your Microsoft account with your registered email id and password. The data which you have stored on OneDrive or DropBox, you can access and modify it.

    office.com/setup

    ReplyDelete
  7. office setup
    Use of MS Office is also simple and the user can learn the use of it easily. Online help option is also available in all application of the MS Office which provides an instant guideline.
    office.com/setup

    ReplyDelete
  8. Your regular Amazon shopping could get you awesome FREE Luxurious Gifts.

    ReplyDelete
  9. Your regular Amazon shopping could get you awesome FREE Luxurious Gifts.

    ReplyDelete
  10. great site.
    http://jwhitecode.blogspot.com/2015/11/how-to-preview-your-xamarinforms-xaml.html

    ReplyDelete
  11. We have to know the methods you can easy way to activate YouTube doing YouTube.com/activate. If you are facing issues with YouTube, you have any queries like, how to connect YouTube on your TV, mobile or other devices contact us. Google has provided us the enjoyment, and by YouTube activate, you watch here latest videos, songs, or web series, etc.
    Read more…

    ReplyDelete
  12. To fix Amazon account locked issue , you need to upload the verification documents directly, contact Amazon support team, and enter the correct login details.

    ReplyDelete
  13. Are you looking for best HP product regarding your HP Printer & technical support ? Visit HP Printer Printing Blank Pages to fix technical error in your . Hurry up ! call HP Printer Printing Blank Pages number now!

    ReplyDelete
  14. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
    www.amazon.com/mytv
    www.amazon.com/mytv

    ReplyDelete
  15. Primevideo.com/mytv - Do you need to enlist your viable gadget at amazon? Simply go to the site www.amazon.com/mytv and adhere to the directions to finish the enrollment of your gadget, at that point you can begin getting a charge out of Amazon Prime Instant Video administration for nothing.

    ReplyDelete
  16. To add or withdraw the cash from the cash app you need a cash card which is a debit card that allows the users to use the current balance at the stores that accept visa despite the deduction of money from the respective banks. It is important to understand that he cash app card is directly allied with the cash app account. For More Info Click Here Cash app login.

    ReplyDelete
  17. Are you having trouble with your AOL IMAP Setting? You don't need to worry at all because we come up with a solution for all of your worries at AOL IMAP settings

    ReplyDelete
  18. Bittrex Login is the USA-based trading platform for the digital currency which is widely known as cryptocurrency. Bittrex support can be accessed in case you want to know more about cryptocurrencies.

    ReplyDelete
  19. Are you facing the problems in Fix Fix Hp printer long delay before printing ? If yes then Visit Fix Hp printer long delay before printing customer care service or Call our helpline number to fix your problems now. Our Experts are ready to help you round the clock.

    ReplyDelete
  20. Are you facing the problems in printerassists ? If yes then Visit PrinterAssists customer care service or Call our helpline number to fix your problems now. Our Experts are ready to help you round the clock.

    ReplyDelete
  21. Are you facing the problems in your HP product regarding your HP Printer assistant, laptops and so ?If yes then Visit HP Printer assistant or Call our helpline number to fix your problems now. Our Experts are ready to help you round the clock.

    ReplyDelete
  22. Bittrex login is the USA-based trading platform for the digital currency which is widely known as cryptocurrency. Bittrex support can be accessed in case you want to know more about cryptocurrencies.
    bittrex login | activate cash app card | how to add money to cash app card

    ReplyDelete
  23. Touse Chromecast, then you need to put in the NFL Game Pass app. When you play a video during the app, a Cast button is displayed that you join to the Chromecast device. A couple of seconds following the CAST button has been pressedthe playback begins on your own tv .
    pbs.org/activate
    pbs.org/activate
    pbs.org/activate
    pbs activate

    ReplyDelete
  24. You'll want to go into the right Hulu Activation Code and after that make a go through the"Publish" option to trigger your Hulu apparatus. • in a period of 25- 30 Seconds roku/link
    roku.com/link activate code
    roku.com/link enter code
    roku.com/link
    www.roku.com/link
    www.roku.com/link

    ReplyDelete
  25. "Get the basic guidelines to use and manage the Venmo login account. The manual instructions are provided to access the Venmo account on your compatible devices.
    Venmo Login | Venmo Login
    "

    ReplyDelete
  26. Learn the basic steps to access open hp printer software website without interruptions. Follow the quick and basic steps to deal with the error in the hp printer. Our experts are there for you round the clock for resolving your problems.
    Open HP Printer Software | HP Support Solutions Framework | HP Officejet 4650 Wireless Setup

    ReplyDelete
  27. www.amazon.com/mytv You have just received another Amazon device. What do you do? You will need to figure out how to connect your devices with Prime so that you can watch and tune into select Prime video content from anywhere. Simply create an amazon account and activate it using the amazon my TV activation code.
    www.amazon.com/mytv login
    amazon/mytv
    primevideo/mytv enter code
    paypal login
    www.amazon.com/mytv enter code

    ReplyDelete
  28. You heard it correctly. Amazon Prime Video can be viewed on a gaming console. These are the steps you need to follow:
    amazon.com/code
    www.amazon.com/mytv
    primevideo/mytv enter code
    www.amazon.com/code
    amazon/mytv

    ReplyDelete
  29. We already stated that you don’t need any additional contraptions to be successful.Watch Amazon Prime VideoIf you have a streaming device. You can watch Amazon Prime Video on the Streaming device by following these simple and quick steps:
    paypal login
    www.amazon.com/code
    roku.com/link
    tubi.tv/activate
    espn.com/activate

    ReplyDelete
  30. You will need to sign into your Amazon Prime Account during the activation phase. It is essential to have an Amazon Prime Account created. This account is only activated by a free login.
    amazon/mytv
    amazon.com/redeem
    amazon.com/redeem
    xfinity.com/authorize

    ReplyDelete
  31. www.amazon.com/mytv: Enter the amazon activation code/amazon myTV code shown on your smart TV screen at Amzaon.com/mytv to register your compatible device with Amazon Prime. Enjoy unlimited movies and other web shows.
    espn.com/activate
    netflix.com/activate
    netflix.com/activate
    Xfinity.com/authorize
    Xfinity.com/authorize

    ReplyDelete
  32. You can simply visit Amazon.com/mytv to link your Amazon Prime Video account to your streaming device.
    Primevideo/mytv
    Primevideo/mytv enter code
    amazon.ca/redeem
    primevideo.com/mytv
    Primevideo/mytv

    ReplyDelete
  33. Sign-in to your Roku with your Amazon username, password, or a code that you have received from Amazon. You will receive a code to enter when you register on Amazon.Amazon.com/mytv. The code will be automatically entered by the Roku channel to log you in to your account.
    Primevideo/mytv
    Primevideo/mytv
    Primevideo/mytv
    Primevideo/mytv
    Primevideo/mytv

    ReplyDelete
  34. Go to Amazon.com/mytv now and create your Amazon account. If you don't have a record yet, sign in to it.
    Primevideo/mytv
    Primevideo/mytv
    amazon.co.uk/mytv
    amazon.co.uk/mytv
    amazon.co.uk/mytv


    ReplyDelete
  35. We all noticed a dramatic shift in viewer preferences with the rise in OTT platforms. Movies have stopped going to the theaters due to the pandemic. They simply made it possible to access the OTT platforms from anywhere in the world. You can register, verify, and activate the MyTV app via www.amazon.com/mytv to become one of the most well-known web show distributors.
    amazon.co.uk/mytv
    amazon.co.uk/mytv
    amazon.co.uk/redeem
    amazon.com/mytv
    www.Amazon.com/mytv

    ReplyDelete
  36. NOTE:Amazon Prime membership grants you access to the Amazon Prime MyTV App. To get your Prime membership, you will need to create an account. You can stream on the big screen and enjoy an incredible selection of web series and other shows.
    amazon.com/mytv
    amazon.com/mytv

    ReplyDelete
  37. A cryptocurrency is a digital asset. USA Crypto Wallet keeps your transactional records in a safe computerized database using strong cryptography. To know more about it feel free to visit our website at USA Crypto Wallet

    ReplyDelete
  38. PayPal, a well-known online payment service provider is flourishing in a number of major nations across the world since it provides financial services to both people and companies. PayPal takes care of everything for you, whether you have access to a bank or not. So, if you've been seeking for PayPalwiki for a while, Visit our website at PayPal Wiki.

    ReplyDelete
  39. Google Pay or Google Wallet is a secure and reliable digital wallet that you can use for online shopping and remittances. This online payment platform boasts a 60 million+ user base and is widely supported by major banks, retail outlets. Buying and selling Bitcoin has become increasingly popular among people all around the world, and numerous trading techniques have been proposed to meet this demand. Buying Bitcoin using Google wallet is one of the most popular ways to trade with Bitcoin. So, If you are wondering how to buy Bitcoin using a Google wallet, this article will help you out. Well, this is quite straightforward, and if we know the specific procedure, you can do it quickly. When it comes to Google Wallet or Google Pay, we can state that many people use it as their primary payment method and have used it to purchase a variety of items online. However, many of us are unaware of how to purchase Bitcoin using it. As a result, in this post, we will assist purchasers and explain the various methods for How to buy Bitcoin with Google wallet.

    ReplyDelete
  40. Hey, This is Billy. If your are facing problem in How to Login or Sign In Coinbase, then you are at the right place. If you're having trouble completing 2-step verification to sign in to your account, make sure your mobile device software and Coinbase app up to date. If you're using a browser to sign in, make sure you're using the latest version of Chrome. Clearing your cache and restarting your browser can also help. To Know more visit Website.

    ReplyDelete
  41. If your are facing problem in Login or Sign In Coinbase, then you are at the right place. If you're having trouble completing 2-step verification to sign in to your account, make sure your mobile device software and Coinbase app are up to date. If you're using a browser to sign in, make sure you're using the latest version of Chrome. Clearing your cache and restarting your browser can also help.
    If you are facing a problem with the Login or Sign In Wells Fargo Bank App, you are at the right place. Here you will get information about How to Wells Fargo Bank Login? You can download the Wells Fargo app on either Apple or Android devices. When you open the app, it'll prompt you to log in. As with your desktop, simply enter your username and password in their respective entry spaces. Access your checking, savings, and other account information, pay bills, make transfers, and more from your mobile device or computer with Wells Fargo Online and the Wells Fargo Mobile app. Once you have your Wells Fargo Online username and password, you can manage your accounts with our Wells Fargo Mobile app or via your mobile browser.

    ReplyDelete
  42. Hey, this is Jack. Need a wallet to store Ethereum, don't worry solution is right here visit website. Although cryptocurrency assets have declined from their peak in December 2017, there is still a compelling case to be made for investing in them as the sector continues to evolve. In April 2019, the price of ETH was around $152. The integration of digital money with the Ethereum Network is its main selling point. In essence, ETH is the driving force behind the Ethereum Network's entire capabilities. The Ethereum Network, with its immense development prospects, is seen by many as a more attractive investment than bitcoin. Ethereum is supported by a number of Fortune 500 organizations and is used by a number of financial institutions.

    ReplyDelete
  43. "AOL mail, a part of Verizon Communications, dates back to 1997 when it was one of the world’s largest email service providers with 9 million users from all across the world. Over time it grew into a huge community and in 2012, it had a huge user base of 24 million users. In 2017, Verizon, which had acquired AOL in 2015, discontinued its email services and transferred all its customers to AOL mail Login.

    To login find below give Step:-

    Step 1:First, try logging in again. Re-check if you have entered the correct credentials.

    Step 2:If you are not able to sign in, try turning it off and then turning it on again. Step 3:Next, make sure to reset the web settings to solve AOL mail can t sign in."

    ReplyDelete
  44. "Hey, This is Evans, If you wanna know How to Link A Bank Account To CoinbaseHow to Link A Bank Account To Coinbase? then you are at the right place. At Coinbase we go to great lengths to keep all of your sensitive information safe. Account numbers and routing numbers are stored using bank-level AES-256 encryption on our servers. In addition, all traffic goes over SSL to prevent third parties from eavesdropping on your connection.
    1. Open the Coinbase Wallet app on your mobile device.
    2. Tap your settings at the bottom.
    3. Scroll down to tap Transfer coins from Coinbase.
    4. Select Buy crypto. Select the coin you'd like to purchase and enter the amount.
    5. Tap Add a payment method and select a payment method.
    6. Follow out remaining prompts.
    To know more Visit Coinbase Login App.
    #CoinbaseLogin #LinkABankAccountToCoinbase #CoinbaeLoginApp
    "

    ReplyDelete
  45. "Hey, This is Jack. Are you looking for a way to get a Netspend visa or prepaid card Login ? Founded in 1999, Netspend is a leading provider of prepaid debit cards, prepaid debit Mastercard and Visa cards, and commercial prepaid card solutions, with over 10 million customers served in the U.S. The simple and quick steps to access the Netspend login account are given below:

    On the NetSpend homepage, go to the top right and choose 'Login.' In the words 'Forgot your username or password?' below the empty log in fields on the account login screen, click 'Password.' Fill in your user name and email address on the following page.
    To know more visit the website Netspend Visa Card Login."

    ReplyDelete
  46. Hey, This is Jack. For a quick and hassle-free Green Dot Login, go to the official site and click "Log In" at the top. Here, you can choose the type of account you wish to log in to Green Dot. You'll need an online account to check your balance and manage your Green Dot card easily using the company's app and website. Visit the Green Dot website and click the "Log In" button to go to the "Account Login" page if you don't already have one. To know more visit Green Dot Bank Login

    ReplyDelete
  47. If your are facing problem in Login or Sign In Coinbase, then you are at the right place. If you're having trouble completing 2-step verification to sign in to your account, make sure your mobile device software and Coinbase app are up to date. If you're using a browser to sign in, make sure you're using the latest version of Chrome. Clearing your cache and restarting your browser can also help. To know more visit the Coinbase Login

    ReplyDelete
  48. """Hey, This is Jack. if you are finding a problem with Netspend Sign In, then you are at the right place. You will find the log in to your account with NetSpend Prepaid Visa or MasterCard by logging in to their website:

    https://www.netspend.com/
    The log-in box is in the upper right corner of the page (home page) under login. Click on login and login to your account after typing your user name and password.
    You can register an account by logging to the home page, You will be able to create your account by clicking on the sign up now under the different Netspend cards types. Choose your card and click sign up now. Please check the following screenshot taken from NetSpend Prepaid Visa or MasterCard’s website.
    To know more visit Netspend Login """

    ReplyDelete
  49. Hey, This is Evans. If you want to know that How do I Complete Procedure To Buying Ethereum Or ETH?" then you are at the right place. Although cryptocurrency assets have declined from their peak in December 2017, there is still a compelling case to be made for investing in them as the sector continues to evolve. In April 2019, the price of ETH was around $152. The integration of digital money with the Ethereum Network is its main selling point. In essence, ETH is the driving force behind the Ethereum Network's entire capabilities. The Ethereum Network, with its immense development prospects, is seen by many as a more attractive investment than bitcoin. Ethereum is supported by a number of Fortune 500 organizations and is used by a number of financial institutions.

    When you open your first account, these are the essential steps you'll take.

    Open a Crypto Exchange Account. The first step to investing in Ethereum is to open an account with an exchange that offers access to cryptocurrency trading. ...
    Fund Your Account. ...
    Place an Order. ...
    Transfer Your Coins to a Wallet."

    To Know more Procedure To Buying Ethereum or ETH.
    #NeedAWalletToStoreEthereum #ProcedureToBuyingEthereumOrETH #GetYourETHIntoAWallet

    ReplyDelete
  50. "Hey, This is Jack. if you are facing problem with How To Login Capital One Card, then you are at the right place. The health and well-being of our customers, associates, and communities is a primary priority at Capital One. We appreciate your concerns and confusion about the coronavirus (COVID-19) outbreak, and we're dedicated to meeting the needs of our customers, associates, and their families as the situation unfold. This is a problem that affects us all, and we're all dealing with it at the same time.
    Log in to your Capital One account through the web or the Capital One mobile app. Select your 360 Checking account once you've signed in. This will demonstrate your equilibrium. Simply click on your account to check recent transactions if you wish to go further.
    To know more about Capital One Login.
    #CapitalOneLogin #CapitalOneCardLogin #CapitalOneBankLogin

    ReplyDelete

  51. Get easy-to-follow guidelines and instructions to access the Greendot Login Account. Greendot.com Register is a well-renowned brand that is a registered company of bank holdings that uses financial technologies to deliver its services.

    ReplyDelete
  52. "Hey This is Evans. An API Key can be thought of as a username that is generated to allow data access. In this case, the exchange generates the Coinbase Pro API, which you then pass on to another application. Based on the permissions you grant, the application will then import your data.

    Choose the API link from the drop-down menu. Select the API Settings tab under Profile Information, then + New API Key. Choose your profile and permissions, create a password, and then enter your 2-Factor Authentication code. Finally, at the bottom, click Create API Key to generate a one-of-a-kind key.

    Finding your Coinbase API Key

    Click 'Settings'
    Click 'API Access' in the menu bar that comes up.
    Click 'New API Key'
    If asked for your password, type your Coinbase.com password. ...
    Under 'Accounts', select the Coinbase account you want Bitcoin Tradr to have access to.
    Adding API restrictions

    In the API restrictions section, click Restrict Key.
    Select all APIs from the dropdown that your API key will be used to access.
    Click Save.
    An API Key can be thought of as a username that is generated to allow data access. In this case, the exchange generates the Coinbase Pro API, which you then pass to another application. Based on the permissions you grant, the application will then import your data.

    Choose the API link from the drop-down menu. Select the API Settings tab under Profile Information, then + New API key. Choose your profile and permissions, create a password, and then enter your 2-factor Authentication. Code. Finally, at the bottom, click Create API Key to generate a one-of-a-kind key.

    To Know more about Coinbase Create API Key"

    ReplyDelete
  53. Coinbase is a crypto exchange and wallet service that helps you trading cryptos. To trade with Coinbase exchange, set up a new Coinbase login account now!
    Exodus Wallet | Kraken Wallet | block chain login | Gemini Login | Coinbase Login

    ReplyDelete
  54. Since we've got observed the listing of eligible gadgets for Amazon Prime Video we also can test out the steps to activate primevideo.Com/mytv in your tool. We simplest need an activation code for the activation process. You can generate the activation code for your tool with the help of Prime Video software. With this information available, you could get a completely unique code and activate their gadgets in much less than one minute.
    www.amazon.com/mytv
    primevideo.com/mytv enter code
    primevideo.com/mytv

    ReplyDelete
  55. This comment has been removed by the author.

    ReplyDelete
  56. This comment has been removed by the author.

    ReplyDelete
  57. This comment has been removed by the author.

    ReplyDelete
  58. This comment has been removed by the author.

    ReplyDelete
  59. Animal Crossing is a social simulation video game series developed and published by Nintendo. The series was conceptualized and created by Katsuya Eguchi and Hisashi Nogami you an check it out by clicking here Get Animal Crossing emulator .

    ReplyDelete
  60. Wow! I think this is one of the most significant information for me. My friend suggest me this site very helpful and i think you also check the site. puTTY is an open source software tool that provides a secure connection to your computer securely via SSH and telnet. puTTY is a free software package that helps you connect to a Unix like computer from the windows operating system.

    ReplyDelete