Announcing XAML Hot Reload for Xamarin.Forms - 8 minutes read


Announcing XAML Hot Reload for Xamarin.Forms

Today at Xamarin Developer Summit, we announced XAML Hot Reload for Xamarin.Forms, which enables you to make changes to your XAML UI and see them reflected live, without requiring another build and deploy.

XAML Hot Reload for Xamarin.Forms speeds up your development and makes it easier to build, experiment, and iterate on your user interface. And this means that you no longer have to rebuild your app each time you tweak your UI – it instantly shows you your changes in your running app!

When your application is compiled using XAML Hot Reload, it works with all libraries and third-party controls. It will be available for iOS and Android in Visual Studio 2019 and Visual Studio 2019 for Mac. This works on all valid deployment targets, including simulators, emulators, and physical devices.

XAML Hot Reload will be available later in 2019, but you can sign up to to participate in the preview phase:

XAML Hot Reload for Xamarin.Forms plugs into your existing workflow to save you time and make you more productive. Today, when you want to make a change to your XAML, you must build, deploy, and debug again. Now, simply save your XAML file and see the changes reflected live on your deployment target, enabling you to spend less time building and deploying and more time building mobile apps.

You don’t need to do anything special to use Hot Reload; there are no extra packages or scaffolding code. Build and deploy your app as you normally would in Visual Studio or Visual Studio for Mac to an iOS or Android emulator, simulator, or physical device. Because XAML Hot Reload for Xamarin.Forms uses the debugger and not a network connection, it works reliability in complex enterprise networks or no-connectivity environments. Edit your XAML and hit save. Upon reload, your navigation state will be maintained. If you use the MVVM pattern, UI state bound to your view model will remain intact across reloads.

This announcement also supports updates to all valid XAML types, including pages, Application, and Shell. If you edit MyControl.xaml and save, all pages that reference that control will have the changes you made automatically applied.

XAML Hot Reload is resilient to typos and unsupported edits, like IntelliSense quick-actions that change the code-behind. Prior to reloading your changes, Visual Studio ensures the changes you made are valid. If your edits contain invalid changes, the change won’t be applied in your app and the XAML editor will display squiggles to let you know. You can also check to see if your reload was successful in the Output window in Visual Studio.

It’s important to us that XAML Hot Reload for Xamarin.Forms works with all types of applications, regardless of complexity. We have partnered with control vendors and open source project maintainers such as Telerik, Infragistics, Grial UI Kit, Prism, and Syncfusion to ensure you have a great experience working with these projects with XAML Hot Reload for Xamarin.Forms.

From the start, your feedback has driven the development of this project. In the past year, the Xamarin product team has distributed over 30 surveys, collected over 3,000 individual survey responses, and conducted over 275 interviews with developers like you. You told us the tooling should be stable, performant, and assist in making you more productive building mobile apps.

In numerous surveys and interviews, you told us the most impactful way to make you more productive was to reduce the amount of time spent in the “inner development loop” – or the amount of time you spend to build, deploy, and debug each change. When we dove into what types of changes you made most, we heard that tweaking your Xamarin.Forms UI in XAML was most popular.

We conducted over 50 concept-value tests with you on XAML Hot Reload for Xamarin.Forms, ensuring that the concept would make your inner development loop more productive. We also partnered with several large Xamarin customers, Visual Studio partners, and Xamarin MVPs to ensure that this experience meets your expectations. Finally, we brought developers into our User Experience lab in Seattle to use XAML Hot Reload for Xamarin.Forms and validate the experience was intuitive for all developers.

Thank YOU for continuing to give our team valuable feedback, from spending ten minutes on a survey to joining our team for an interview. This feedback not only drives building new features for you from problem to solution but also helps to shape the overall product roadmap. Next time we reach out with a request for feedback, please respond; we are listening.

During our private preview phase, we will continue to iterate on XAML Hot Reload to ensure it meets your needs and exceeds the expectations you have for fundamentals such as quality and performance. When you tell us it’s ready, it will be built into a future Visual Studio and Visual Studio for Mac release.

In addition to ensuring we meet quality and performance goals, the following items are also on our roadmap for XAML Hot Reload:

XAML is just the beginning of Xamarin’s hot reload story. We will continue to focus our roadmap on items that you tell us are most important to you. While you told us XAML Hot Reload would be the way, we could most immediately benefit your productivity building Xamarin.Forms applications in Visual Studio, we are continuing to explore additional ways we can improve your productivity in Visual Studio.

We invite you to sign up for the private preview so that you can try XAML Hot Reload for Xamarin.Forms. We will continue to accept new developers into the preview program in weekly “ring” releases, ensuring that product reliability and performance is maintained as more developers preview Hot Reload. Those accepted into the private preview may receive communications from our team asking for feedback; we want XAML Hot Reload for Xamarin.Forms to meet your expectations and reflect your priorities, so please take a few minutes out of your day to respond. Your feedback will help save Xamarin developers countless hours in the future!

If you have any questions, don’t hesitate to reach out to the XAML Hot Reload for Xamarin.Forms team at hotreload-team.com.

Source: Microsoft.com

Powered by NewsAPI.org

Keywords:

Extensible Application Markup LanguageXamarinExtensible Application Markup LanguageXamarinExtensible Application Markup LanguageUser interfaceBuild (developer conference)Software deploymentExtensible Application Markup LanguageXamarinSoftware developmentUser interfaceMobile appUser interfaceMobile appExtensible Application Markup LanguageLibrary (computing)Widget (GUI)IOSAndroid (operating system)Microsoft Visual StudioMicrosoft Visual StudioMacintoshXMLSoftware deploymentSimulationEmulatorMobile deviceExtensible Application Markup LanguageSoftware release life cycleExtensible Application Markup LanguageXamarinWorkflowExtensible Application Markup LanguageSoftware deploymentDebuggingExtensible Application Markup LanguageSoftware deploymentMobile appSource codeMobile appMicrosoft Visual StudioMicrosoft Visual StudioMacintoshIOSAndroid (operating system)EmulatorSimulationPeripheralExtensible Application Markup LanguageXamarinDebuggerComputer networkComputer networkExtensible Application Markup LanguageModel–view–viewmodelSoftware design patternUser interfaceView modelPatch (computing)XMLExtensible Application Markup LanguageData typeWeb pageApplication softwareShell (computing)Extensible Application Markup LanguagePages (word processor)Widget (GUI)Extensible Application Markup LanguageIntelligent code completionASP.NETMicrosoft Visual StudioXMLApplication softwareExtensible Application Markup LanguageMicrosoft Visual StudioExtensible Application Markup LanguageXamarinData typeApplication softwareWidget (GUI)Open-source softwareTelerikInfragisticsUser interfacePRISM (surveillance program)Extensible Application Markup LanguageXamarinFeedbackSurvey methodologySurvey methodologyProductivitySoftware developmentControl flowSoftware deploymentDebuggingData typeXamarinUser interfaceExtensible Application Markup LanguageExtensible Application Markup LanguageXamarinSoftware developmentMicrosoft Visual StudioXamarinUser experienceSeattleExtensible Application Markup LanguageXamarinFeedbackSurvey methodologyFeedbackRequest for feedbackExtensible Application Markup LanguageMicrosoft Visual StudioMicrosoft Visual StudioMacintoshSoftware release life cycleExtensible Application Markup LanguageExtensible Application Markup LanguageXamarinExtensible Application Markup LanguageXamarinApplication softwareMicrosoft Visual StudioProductivity softwareMicrosoft Visual StudioSoftware release life cycleExtensible Application Markup LanguageXamarinSoftware developerSoftware release life cycleComputer programProduct (business)Software developerSoftware release life cycleFeedbackExtensible Application Markup LanguageXamarinExtensible Application Markup LanguageXamarin