wpf does not support direct content

Wpf custom control reports an error, does not support direct content

I use winform to add wpf custom control, and report that usercontrol does not support direct content, create a new wpf program, and report that window does not support direct content. . What is the reason?

  • *************Need to add reference to System.Xaml****************

Guess you like

Origin blog.csdn.net/u014090257/article/details/119795813