when creating a flaoting control this control is not visable. in version 4.1.0.57 the functionalty was still working as expected.
the call to dockingManager.FloatControl is creating the control but the control is not visible.
For an example to reproduce the bug.
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Syncfusion.Windows.Forms.Tools;
namespace FloatingControls
{
public class Form1 : Form
{
///
/// Required designer variable.
///
private IContainer components = null;
private DockingManager dockingManager1;
private Button button1;
private Button button2;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
UserControl control = new UserControl();
control.Name = "Control 1";
dockingManager1.FloatControl(control, new Rectangle(Cursor.Position, new Size(100, 100)));
}
private void button2_Click(object sender, EventArgs e)
{
UserControl control = new UserControl();
control.Name = "Control 2";
dockingManager1.DockControl(control, this, DockingStyle.Bottom, 100);
}
///
/// Clean up any resources being used.
///
///
true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(typeof (Form1));
this.dockingManager1 = new Syncfusion.Windows.Forms.Tools.DockingManager(this.components);
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize) (this.dockingManager1)).BeginInit();
this.SuspendLayout();
//
// dockingManager1
//
this.dockingManager1.DockLayoutStream =
((System.IO.MemoryStream) (resources.GetObject("dockingManager1.DockLayoutStream")));
this.dockingManager1.ForwardMenuShortcuts = false;
this.dockingManager1.HostControl = this;
//
// button1
//
this.button1.Dock = System.Windows.Forms.DockStyle.Top;
this.button1.Location = new System.Drawing.Point(0, 0);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(292, 23);
this.button1.TabIndex = 1;
this.button1.Text = "Add Floating Control";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Dock = System.Windows.Forms.DockStyle.Top;
this.button2.Location = new System.Drawing.Point(0, 23);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(292, 23);
this.button2.TabIndex = 2;
this.button2.Text = "Add Docked Control";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 273);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.IsMdiContainer = true;
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize) (this.dockingManager1)).EndInit();
this.ResumeLayout(false);
}
#endregion
}
}