我对 DockPanel Suite 非常陌生。我创建了一个自定义 FloatWindow 和 IFloatWindowFactory ,如下所示:
public class MapFloatWindowFactory : DockPanelExtender.IFloatWindowFactory
{
public FloatWindow CreateFloatWindow(DockPanel dockPanel, DockPane pane, Rectangle bounds)
{
return new MapFloatWindow(dockPanel, pane, bounds);
}
public FloatWindow CreateFloatWindow(DockPanel dockPanel, DockPane pane)
{
return new MapFloatWindow(dockPanel, pane);
}
}
public class MapFloatWindow : FloatWindow
{
public MapFloatWindow(DockPanel dockPanel, DockPane pane) : base(dockPanel, pane)
{
FormBorderStyle = FormBorderStyle.Sizable;
}
public MapFloatWindow(DockPanel dockPanel, DockPane pane, Rectangle bounds) : base(dockPanel, pane, bounds)
{
FormBorderStyle = FormBorderStyle.Sizable;
}
}
但是,通过这种方法, my 的MaximizeBox
andMinimizeBox
属性DockContent
不受尊重。我将如何实现这一点?