All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

RepositoryItemPictureEdit.OpenFileDialogFilter Property

Gets or sets a custom filter for the Open File dialog.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue("")]
public string OpenFileDialogFilter { get; set; }
<DXCategory("Behavior")>
<DefaultValue("")>
Public Property OpenFileDialogFilter As String

Property Value

Type Default Description
String

String.Empty

The Open File dialog's custom filter. If this property is set to an empty string, the dialog uses a default filter.

Remarks

A user can load and save images at runtime via the context menu's Load and Save commands (see ShowMenu), which invoke the 'Open File' and 'Save File' dialogs.

The OpenFileDialogFilter and SaveFileDialogFilter properties allow you to specify custom filters for these dialogs.

pictureEdit1.Properties.OpenFileDialogFilter = "WebP Files |*.webp|" + "Portable Network Graphics Format (*.png)|*.png" ;

NOTE

Note that the PictureEdit control does not support the WebP format out of the box. You can add support for this and other formats with the RepositoryItemPictureEdit.ImageLoading and RepositoryItemPictureEdit.ImageSaving events.

See the FileDialog.Filter topic for information on how to set dialog filters.

See Also