"Visual Studio requires a newer version of Windows to display this content."

12,106

Solution 1

Update from 14th September 2016

The live preview for Xamarin forms is now available in the stable channel. https://developer.xamarin.com/releases/studio/xamarin.studio_6.1/xamarin.studio_6.1/#Xamarin_Forms_Previewer

Update from 27th April 2016

Xamarin has just announced a live preview for Xamarin.Forms on the Evolve 2016 Keynote. It is included in the alpha channel, and you need to update Xamarin.Forms to 2.3 prerelease.

Original Answer

Xamarin.Forms XAML is not WPF XAML. There is currently no editor for this dialect.

There is not yet a visual designer for generating XAML in Xamarin.Forms applications, so all XAML must be hand-written.

The only way to have a preview is currently Gorilla Player. But the community is requesting it strongly. It's the feature request with the most votes.

Solution 2

I was facing the same problem when I was loading the MainPage.xaml file of my UWP application in my Visual Studio 2019.

enter image description here

I was sure that I have the version 1903 (10.0.18362.0) in my system, so the problem was not that. To fix this error, this is what I did.

  1. Install the version 1809 (10.0.17763.0), to do this, click on the visual studio installer, and select your Visual Studio, and then click on Modify
  2. Click on the Individual Components and then select Windows 10 SDK (10.0.17763.0)

enter image description here

  1. Once the installation is done, open your project in the Visual Studio and then click on your project and then Properties.
  2. Select the Target version 1809 (10.0.17763.0) under Targeting

enter image description here

Now you should be able to see the design view of your xaml file. Hope it helps.

Solution 3

This answer is based on the Title (No Xamarin)

I found this Choose a UWP Version link to be helpful in solving the problem.

Go to:

  1. Project Menu
  2. Project Properties
  3. Change both Target and Min versions to Build 10240
  4. XAML designer is back!
Share:
12,106
Deep Gandhi
Author by

Deep Gandhi

Coder, gamer, complainer... https://Network47.org/

Updated on June 21, 2022

Comments

  • Deep Gandhi
    Deep Gandhi almost 2 years

    Getting the error "Visual Studio requires a newer version of Windows to display this content." when using the XAML designer tool in Xamarin. Any ideas on how I'd go about tracking down the source of this? I'm using Windows 10, and Visual Studio 2015.

    Example image

  • Deep Gandhi
    Deep Gandhi about 8 years
    Ah, so maybe that's what's going on here? Alright. I'll check those links out. I come from an Android and Delphi background, and I'm just starting to learn Xamarin and Xamarin.Forms, so I'm just getting caught up on what's available on the platform. There's no official visual designer outside of the third-party stuff, eh?
  • Sven-Michael Stübe
    Sven-Michael Stübe about 8 years
    For normal WPF applications, it should work, but not for Xamarin.Forms.
  • gilu
    gilu over 3 years
    That did the trick. Why would this setting be set to a "future" version of Windows by default...?!?