windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-23640bfd.md
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
[DefaultValue("RibbonSettings.xml")]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public string AutoSaveLayoutToXmlPath { get; set; }
<DXCategory("Behavior")>
<DefaultValue("RibbonSettings.xml")>
<XtraSerializableProperty>
Public Property AutoSaveLayoutToXmlPath As String
| Type | Default | Description |
|---|---|---|
| String | "RibbonSettings.xml" |
The XML file path.
|
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.
See Also