RibbonControl.AutoSaveLayoutToXmlPath Property
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Gets or sets the path to the XML file where the layout is automatically saved.
Namespace: DevExpress.XtraBars.Ribbon
Assembly: DevExpress.XtraBars.v25.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DefaultValue("RibbonSettings.xml")]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public string AutoSaveLayoutToXmlPath { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| String | "RibbonSettings.xml" | The XML file path. |
Remarks
To activate the automatic save layout feature, set the RibbonControl.AutoSaveLayoutToXml property to true. Each time the RibbonControl is closed, its current layout is written to an XML file specified by the AutoSaveLayoutToXmlPath property.
If the AutoSaveLayoutToXmlPath property is not specified, the RibbonControl.InvalidSaveRestoreLayoutException event is raised.
Use the RibbonControl.AllowCustomization property to allow users to customize the Ribbon UI.