Back to Devexpress

RibbonControl.SaveLayout(Stream) Method

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

latest2.1 KB
Original Source

RibbonControl.SaveLayout(Stream) Method

Saves the custom layout of a RibbonControl as a Stream.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

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

Parameters

NameTypeDescription
streamStream

A Stream to which a custom layout is saved.

|

Remarks

The SaveLayout(System.IO.Stream) method saves the custom layout of a RibbonControl as a Stream. To restore the custom layout, use the RibbonControl.RestoreLayout(System.IO.Stream) method.

You can also use the RibbonControl.SaveDefaultLayout() method to save the current RibbonControl layout as 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

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace