Skip to main content
All docs
V25.2
  • RibbonControl.RestoreLayout(String) 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(
        string path
    )

    Parameters

    Name Type Description
    path String

    A path to the XML file from which a custom layout is restored.

    Remarks

    The RestoreLayout(System.String) method loads contents of an XML file generated by the RibbonControl.SaveLayout(System.String) 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