The requested page is not available for the requested platform. You are viewing the content for Default platform.

FileAttachmentsWindowsFormsModule.GetFileDataManager(XafApplication) Method

Provides access to the file data manager used by the FileAttachmentsWindowsFormsModule.

Namespace: DevExpress.ExpressApp.FileAttachments.Win

Assembly: DevExpress.ExpressApp.FileAttachment.Win.v19.1.dll


public static IFileDataManager GetFileDataManager(
    XafApplication application
Public Shared Function GetFileDataManager(
    application As XafApplication
) As IFileDataManager


Name Type Description
application XafApplication

An XafApplication object that provides methods and properties to manage the current application.


Type Description

An IFileDataManager object that can be used to open stored files using an associated application or to save them to a local disk.


The following code snippet demonstrates an Action that opens all resume files. The Action is designed for List Views of the Resume business class, which is declared in the MainDemo installed in the %PUBLIC%\Documents\DevExpress Demos 19.1\Components\eXpressApp Framework\MainDemo folder, by default.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.FileAttachments.Win;
public class MyViewController : ViewController<ListView> {
    SimpleAction openSelectedDocuments;
    public MyViewController() {
        TargetObjectType = typeof(Resume);
        openSelectedDocuments = new SimpleAction(
            this, "OpenSelectedDocumentsAction", "RecordEdit", openSelectedDocuments_Execute);
        openSelectedDocuments.Caption = "Open Selected Documents";
        openSelectedDocuments.SelectionDependencyType = 
    void openSelectedDocuments_Execute(object sender, SimpleActionExecuteEventArgs e) {
        foreach (Resume resume in View.SelectedObjects) {
            if (resume.File != null) {
See Also