Back to Devexpress

ThemedWindow.SaveLayoutToXml(String) Method

wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-dot-savelayouttoxml-x28-system-dot-string-x29.md

latest2.8 KB
Original Source

ThemedWindow.SaveLayoutToXml(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Saves the layout of the themed window to an XML file.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public void SaveLayoutToXml(
    string path
)
vb
Public Sub SaveLayoutToXml(
    path As String
)

Parameters

NameTypeDescription
pathString

An XML file to which the layout is stored.

|

Remarks

You can use the following ThemedWindow methods to save/restore the control’s properties:

ThemedWindow can save and restore its size, position, and WindowState properties.

To serialize a ThemedWindow ‘s properties with the WorkspaceManager, LayoutSerializationService, or DXSerializer classes, set the ThemedWindow ‘s dx:DXSerializer.Enabled attached property to true.

xaml
<dx:ThemedWindow dx:DXSerializer.Enabled="True">
    ...
</dx:ThemedWindow>

See Also

SaveLayoutToStream(Stream)

RestoreLayoutFromStream(Stream)

RestoreLayoutFromXml(String)

ThemedWindow Class

ThemedWindow Members

DevExpress.Xpf.Core Namespace