在下面的示例中,新建了一个面板,并使它浮动在屏幕的右下角。

C#CopyCode image复制代码
using DevExpress.XtraBars.Docking;
// ...
// Create a panel and make it floated.
DockPanel p1 = dockManager1.AddPanel(DockingStyle.Float);
p1.Text = "Panel 1";
// ...
p1.FloatSize = new Size(100, 150);
Point pt = new Point(Screen.PrimaryScreen.WorkingArea.Width - p1.Width, 
  Screen.PrimaryScreen.WorkingArea.Height - p1.Height);
// Move the panel to the bottom right corner of the screen.
p1.MakeFloat(pt);         

Visual BasicCopyCode image复制代码
Imports DevExpress.XtraBars.Docking
' ...
' Create a panel and make it floated.
Dim p1 As DockPanel = DockManager1.AddPanel(DockingStyle.Float)
p1.Text = "Panel 1"
' ...
p1.FloatSize = New Size(100, 150)
Dim pt As Point = New Point(Screen.PrimaryScreen.WorkingArea.Width - p1.Width, _
  Screen.PrimaryScreen.WorkingArea.Height - p1.Height)
' Move the panel to the bottom right corner of the screen.
p1.MakeFloat(pt)