Skip to content

MuhammadSulaiman001/WPF.LegacyOpenFileDialogWithPreviewPanel

 
 

Repository files navigation

Features

  • Preview the file once the user select it.
  • Callbacks for file selection, dialog closing:
    • OnDialogClose, OnFileChosen.

Demo Image

Basic Usage

Open the legacy file explorer from anywhere using

LegacyOpenFileDialogHelper.OpenCustomFileDialog<PreviewView>(
      onFileChosen: chosenFilePath => MessageBox.Show(chosenFilePath)
);

Where PreviewView is a special UserControl that inherits from PreviewViewBase.

PreviewViewBase forces overriding PreviewCallback method, where it gives the path of the selected file so it could be possible to update the preview accordingly.

Sample Application

See Sample Application for complete demo.

About

WPF - Old Windows File Explorer that supports previewing the selected file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%