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

DiagramShowingOpenDialogEventArgs(DiagramControl, String, String, String, Object) Constructor

Initializes a new instance of the DiagramShowingOpenDialogEventArgs class with the specified settings.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v24.2.dll

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

public DiagramShowingOpenDialogEventArgs(
    DiagramControl source,
    string filter,
    string title,
    string initialDirectory,
    object documentSourceToOpen
)

#Parameters

Name Type Description
source DiagramControl

The DiagramControl that raised the event.

filter String

The file filtering options available in the dialog. By default, Xml files (*.xml)|*.xml|All files (*.*)|*.*

title String

A string value that is the title of the dialog.

initialDirectory String

A string value that is the path to the directory displayed by the dialog.

documentSourceToOpen Object

The object from which to automatically load the diagram. It can be a string value specifying the file full path, a Uri object, a stream or an array of bytes.

#Remarks

If the documentSourceToOpen parameter is set, a diagram will be automatically loaded from the specified source; the default dialog will not be invoked.

See Also