LayoutPanel.Uri Property
Gets a System.Uri object used to assign the current LayoutPanel‘s content. This is a dependency property.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
Uri | A System.Uri object used to assign the current LayoutPanel‘s content. |
Remarks
You can load the content of an external Window, Page, User Control into LayoutPanel objects by setting the ContentItem.Content inherited property to a System.Uri object referring to a corresponding XAML file. If a System.Uri object is used to specify the LayoutPanel‘s content, the Uri property returns the assigned System.Uri object.
Depending on the XAML file contents, the LayoutPanel.Control and LayoutPanel.Layout properties return different values:
- If a System.Uri object refers to a XAML file containing an UserControl, the LayoutPanel.Control property returns this UserControl and the LayoutPanel.Layout property returns null.
- If a loaded XAML file contains a Window or Page, the LayoutPanel.Control property returns the root element of the Window/Page and the LayoutPanel.Layout property returns null.
For more details, see the ContentItem.Content property.