wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-dot-restorelayoutfromxml-x28-system-dot-string-x29.md
Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.
Restores the layout of the themed window from an XML file.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public void RestoreLayoutFromXml(
string path
)
Public Sub RestoreLayoutFromXml(
path As String
)
| Name | Type | Description |
|---|---|---|
| path | String |
An XML file from which the layout of the themed window is restored.
|
ThemedWindow can save and restore its size, position, and WindowState properties. You can set the dx:DXSerializer.Enabled attached property for ThemedWindow to True and serialize its properties using WorkspaceManager or LayoutSerializationService.
<dx:ThemedWindow dx:DXSerializer.Enabled="True">
...
</dx:ThemedWindow>
ThemedWindow provides the following methods that can save and restore the control’s properties directly:
RestoreLayoutFromXml(String)See Also