Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FloatGroup.FloatLocation Property

Gets or sets the location of the FloatGroup object, relative to the top left corner of the DockLayoutManager container. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public Point FloatLocation { get; set; }

#Property Value

Type Description
Point

A Point structure that specifies the location of the FloatGroup object, relative to the top left corner of the DockLayoutManager container.

#Remarks

#In XAML

The following code sample specifies the FloatGroup‘s FloatLocation and FloatSize properties:

<dx:ThemedWindow 
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager>
    <dxdo:DockLayoutManager.FloatGroups>
      <dxdo:FloatGroup FloatLocation="50,40" FloatSize="200,150">
        <dxdo:LayoutPanel Caption="Panel1"/>
      </dxdo:FloatGroup>
    </dxdo:DockLayoutManager.FloatGroups>
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>

DockLayoutManager - FloatLocation Property

#In Code

The following code sample creates the same FloatGroup in code:

<dx:ThemedWindow 
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager x:Name="DockLayoutManager1">
    <dxdo:LayoutGroup>
      <dxdo:LayoutPanel Caption="Panel1"/>
    </dxdo:LayoutGroup>
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>
FloatGroup floatgroup = DockLayoutManager1.DockController.Float(Panel1);
floatgroup.FloatLocation = new Point(50, 40);
floatgroup.FloatSize = new Size(200, 150);

The following code snippets (auto-collected from DevExpress Examples) contain references to the FloatLocation property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also