Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WPF用户控制容器C#VS 2010_C#_Wpf_Visual Studio 2010_User Controls - Fatal编程技术网

WPF用户控制容器C#VS 2010

WPF用户控制容器C#VS 2010,c#,wpf,visual-studio-2010,user-controls,C#,Wpf,Visual Studio 2010,User Controls,我有一个问题,因为我想创建一个可以作为容器使用的UserControl 我使用了链接: 但我认为这部分不适用于WPF 4.0: [设计器(“System.Windows.Forms.Design.ParentControlDesigner,System.Design”,typeof(IDesigner))] 公共类UserControl1:System.Windows.Forms.UserControl { } 请帮助我(您正在使用Forms UserControl 改用WPF,一切都会好起来

我有一个问题,因为我想创建一个可以作为容器使用的UserControl

我使用了链接:

但我认为这部分不适用于WPF 4.0:

[设计器(“System.Windows.Forms.Design.ParentControlDesigner,System.Design”,typeof(IDesigner))] 公共类UserControl1:System.Windows.Forms.UserControl {

}


请帮助我(

您正在使用Forms UserControl

改用WPF,一切都会好起来的

public class UserControl1 : System.Windows.Controls.UserControl
public class UserControl1 : System.Windows.Controls.UserControl