Back to Devexpress

BarManager.RestoreLayoutFromStream(Stream) Method

wpf-devexpress-dot-xpf-dot-bars-dot-barmanager-dot-restorelayoutfromstream-x28-system-dot-io-dot-stream-x29.md

latest2.0 KB
Original Source

BarManager.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 bars from a stream.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Parameters

NameTypeDescription
streamStream

A stream from which the bars’ layout is restored.

|

Remarks

Use the BarManager.AddNewItems property to set whether new items, added to the BarManager after a stream was created, should remain after restoring this layout.

See Also

RestoreLayoutFromXml(String)

SaveLayoutToStream(Stream)

SaveLayoutToXml(String)

AddNewItems

BarManager Class

BarManager Members

DevExpress.Xpf.Bars Namespace