Skip to main content
A newer version of this page is available. .

ThemedWindow.SaveLayoutToStream(Stream) Method

Saves the layout of the themed window to a stream.

Namespace: DevExpress.Xpf.Core

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public void SaveLayoutToStream(
    Stream stream
)

Parameters

Name Type Description
stream Stream

A stream to which the layout is stored.

Remarks

The saved layout can be restored using the ThemedWindow.RestoreLayoutFromStream(Stream) method.

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:

See Also