DockPanel Suite:Type" WeifenLuo.WinFormsUI.Docking.FloatWindow"上的构造函数未找到

时间:2018-06-12 12:57:26

标签: c# visual-studio design-time dockpanel-suite

由于我更新了Visual Studio,每次尝试在设计模式下查看FloatWindow时都会收到此错误。在更新之前,这有效,但现在我无法编辑FloatWindow。我甚至尝试重新安装DockPanel Suite NuGet包,但没有成功。

以下是我用来创建FloatWindow的代码(我创建了一个Form并将基类更改为FloatWindow):

public partial class HexViewPanel : FloatWindow
{
    public HexViewPanel(DockPanel dockPanel, DockPane pane) : base(dockPanel, pane)
    {

    }

    public HexViewPanel(DockPanel dockPanel, DockPane pane, Rectangle bounds) : base(dockPanel, pane, bounds)
    {

    }
}

这是我得到的错误的callstack:

at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at System.ComponentModel.Design.DesignSurface.CreateInstance(Type type)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateInstance(Type type)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) 

我该如何解决这个问题?

0 个答案:

没有答案