Back to Devexpress

ThemedWindow.RestoreLayoutFromStream(Stream) Method

wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-dot-restorelayoutfromstream-x28-system-dot-io-dot-stream-x29.md

latest2.8 KB
Original Source

ThemedWindow.RestoreLayoutFromStream(Stream) Method

SECURITY-RELATED CONSIDERATIONS

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 a stream.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public void RestoreLayoutFromStream(
    Stream stream
)
vb
Public Sub RestoreLayoutFromStream(
    stream As Stream
)

Parameters

NameTypeDescription
streamStream

A stream from which the layout of the themed window is restored.

|

Remarks

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.

xaml
<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

SaveLayoutToXml(String)

SaveLayoutToStream(Stream)

RestoreLayoutFromXml(String)

ThemedWindow Class

ThemedWindow Members

DevExpress.Xpf.Core Namespace