The type 'Window' does not support direct content

前端 未结 5 811
既然无缘
既然无缘 2021-02-05 00:09

I have a WPF solution built with VS 2015 composed of several projects. Suddenly I started receiving a warning in design mode stating the following:

The t

5条回答
  •  天命终不由人
    2021-02-05 00:36

    on behalf of @mark Richman I edited the Itemtemplate to automatically Reference "System.Xaml". Just in case some is interested:

    can be found in: "[VS InstallDir]\Common7\IDE\ItemTemplates\VisualBasic\WPF\[InputLocale]\WPFWindow"

    BR, Daniel

提交回复
热议问题