- Preview the file once the user select it.
- Callbacks for file selection, dialog closing:
OnDialogClose
,OnFileChosen
.
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.
See Sample Application for complete demo.