请更改以下行(来自 FormXXX.Designer.cs):
private void InitializeComponent() {
//...
this.metroUIView1 = new DevExpress.XtraBars.Docking2010.Views.WindowsUI.MetroUIView(this.components);
//...
}
public DevExpress.XtraBars.Docking2010.Views.WindowsUI.MetroUIView metroUIView1;
到:
private void InitializeComponent() {
//...
this.metroUIView1 = new DevExpress.XtraBars.Docking2010.Views.WindowsUI.WindowsUIView(this.components);
//...
}
public DevExpress.XtraBars.Docking2010.Views.WindowsUI.WindowsUIView metroUIView1;
然后您可以将metroUIView1
变量重命名为windowsUIView1
.
仅出于兼容性原因,DevExpress.XtraBars.Docking2010.Views.WindowsUI.MetroUIView
该类在 DevExpress.XtraBars.v12.2.dll 中定义(您可以按 F12 键从元数据中查看它的声明):
namespace DevExpress.XtraBars.Docking2010.Views.WindowsUI {
[EditorBrowsable(EditorBrowsableState.Never)]
[Browsable(false)]
[Obsolete("You should use the WindowsUIView class")]
public class MetroUIView : WindowsUIView {
public MetroUIView();
public MetroUIView(IContainer container);
}
}