Back to Devexpress

RibbonControl.AutoSaveLayoutToXmlPath Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-23640bfd.md

latest2.8 KB
Original Source

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

csharp
[DefaultValue("RibbonSettings.xml")]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public string AutoSaveLayoutToXmlPath { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue("RibbonSettings.xml")>
<XtraSerializableProperty>
Public Property AutoSaveLayoutToXmlPath As String

Property Value

TypeDefaultDescription
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.

See Also

AutoSaveLayoutToXml

AllowCustomization

InvalidSaveRestoreLayoutException

SaveLayoutToXml(String)

RestoreLayoutFromXml(String)

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace