DXFileDialog.DefaultExt Property
Gets or sets the default file name extension.
Namespace: DevExpress.Xpf.Dialogs
Assembly: DevExpress.Xpf.Dialogs.v24.2.dll
NuGet Package: DevExpress.Wpf.Dialogs
Declaration
Property Value
Type | Description |
---|---|
String | The default file name extension. The returned string does not include the period. The default value is an empty string (“”). |
Remarks
When an end user specifies a file name without an extension, the DXFileDialog appends an extension to the file name. This extension is determined by the DXFileDialog.Filter and DefaultExt properties.
If a DXFileDialog.Filter is selected in the DXFileDialog and the filter specifies an extension, then that extension is used.
If the selected DXFileDialog.Filter uses a wildcard in place of the extension (e.g., "All files|*.*"
), then the extension specified in the DefaultExt property is used.