Skip to main content
All docs
V25.2
  • 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

    public virtual void RestoreLayout(
        Stream stream
    )

    Parameters

    Name Type Description
    stream Stream

    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