Back to Devexpress

RibbonControl.RestoreLayout(Stream) Method

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-dot-restorelayout-x28-system-dot-io-dot-stream-x29.md

latest2.3 KB
Original Source

RibbonControl.RestoreLayout(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 saved layout of a RibbonControl.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

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

Parameters

NameTypeDescription
streamStream

A Stream from which a custom layout is restored.

|

Remarks

The RestoreLayout(System.IO.Stream) method loads contents of a Stream generated by the RibbonControl.SaveLayout(System.IO.Stream) method. You can also use the RibbonControl.RestoreDefaultLayout() method to discard the layout customization and roll back to the default layout.

Saving and restoring layouts is part of the Customization feature. Refer to the following section for more information: Runtime Customization.

See Also

SaveLayout(Stream)

Runtime Customization

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace