Bug 42206 - Incorrectly detecting xamarin forms xaml
Summary: Incorrectly detecting xamarin forms xaml
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Xamarin.Forms Previewer ()
Version: unspecified
Hardware: PC Mac OS
: Highest blocker
Target Milestone: (C8)
Assignee: Alan McGovern
: 42233 ()
Depends on:
Reported: 2016-06-28 13:34 UTC by Alan McGovern
Modified: 2016-07-05 05:14 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alan McGovern 2016-06-28 13:34:46 UTC
The xaml previewer is being enabled for WPF xaml files, for example this file:

<UserControl x:Class="MonoTouch.Design.Client.Windows.MethodListPanel"
             d:DesignHeight="300" d:DesignWidth="300" Name="methodListPanel">
Comment 1 Alan McGovern 2016-06-29 10:03:53 UTC
*** Bug 42233 has been marked as a duplicate of this bug. ***
Comment 2 xamarin-release-manager 2016-07-01 11:35:40 UTC
Fixed in version (master)

Author: Alan McGovern
Commit: 7cd650560d8e98b45be702cff07168bd3520604a (xamarin/md-addins)
Included in Commit: 964f8b4344468429a2b50a4476e163d2c6b1ac72 (mono/monodevelop)
Comment 4 Alan McGovern 2016-07-04 12:25:05 UTC
I'm not 100% sure what you're doing in that screencast.

The fix we made was that if you double click on a xaml file in the property panel, or open it in any other way, we check it is a xamarin.forms xaml file before enabling the previewer.

If the file is xamarin.forms xaml originally and then you modify it to make it invalid, then it will simply be invalid xaml and will display the error you saw.