Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

public string DefaultExt { get; set; }

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

See Also