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

DockControllerBase.AddDocumentPanel(Point, Size, Uri) Method

Adds a new floating DocumentPanel and loads the contents of a Window, Page or UserControl defined in the specified XAML into the DocumentPanel.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public DocumentPanel AddDocumentPanel(
    Point floatLocation,
    Size floatSize,
    Uri uri
)

#Parameters

Name Type Description
floatLocation Point

A Point object specifying a position of the left top corner of the created DocumentPanel.

floatSize Size

A Size object specifying the height and width of the created DocumentPanel.

uri Uri

A Uri object specifying the uniform resource identifier (URI) of the XAML that defines a Window, Page or UserControl to be loaded into the created DocumentPanel.

#Returns

Type Description
DocumentPanel

The created DocumentPanel object.

#Remarks

This method creates a floating DocumentPanel, not included in any existing DocumentGroups. See the method overload list to learn about other ways to add panels.

See Also