在下面的示例中,新建了一个面板,并使它浮动在屏幕的右下角。
C# | 复制代码 |
---|
using DevExpress.XtraBars.Docking;
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);
p1.MakeFloat(pt);
|
Visual Basic | 复制代码 |
---|
Imports DevExpress.XtraBars.Docking
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)
p1.MakeFloat(pt)
|