I created a custom XAML constructor as http://code.msdn.microsoft.com/windowsdesktop/Designer-View-Over-XML-20a81f17 I have a question: how to make a custom constructor work only on certain types of projects (for example, a custom project type) and all other default project designers.
The file VsTemplateDesignerPackage.cs has:
// Microsoft Visual Basic Project [EditorFactoryNotifyForProject("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}", EditorFactory.Extension, GuidList.guidXmlChooserEditorFactory)] // Microsoft Visual C
I add:
//CustomProjectType [EditorFactoryNotifyForProject("{GUID CustomProjectType}", EditorFactory.Extension, GuidList.guidXmlChooserEditorFactory)]
But that will not work. This leads to the fact that the custom designer for this extension is used in all types of projects.
How to create a custom constructor for opening * .XAML files only in custom projects?
c # visual-studio-2010 wpf visual-studio-2012 xaml
user3113636
source share