wpf-devexpress-dot-xpf-dot-dialogs-dot-dxfiledialog-2ad0fcba.md
Gets or sets the default file name extension.
Namespace : DevExpress.Xpf.Dialogs
Assembly : DevExpress.Xpf.Dialogs.v25.2.dll
NuGet Package : DevExpress.Wpf.Dialogs
public string DefaultExt { get; set; }
Public Property DefaultExt As String
| Type | Description |
|---|---|
| String |
The default file name extension. The returned string does not include the period. The default value is an empty string (“”).
|
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.
See Also