• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • SharpDialogs
      • SharpDialogFilter
      • SharpDialogHelpers
      • SharpFileOpenDialog
      • SharpFileSaveDialog
      • SharpFolderBrowserDialog
      • SharpInputBox
      • SharpProgressDialog
    • SharpDialogs.Wpf
      • SharpFileOpenDialogWpf
      • SharpFileSaveDialogWpf
      • SharpFolderBrowserDialogWpf
      • SharpProgressDialogWpf
    • SharpWpfAboutBox
      • SharpAboutBox
      • SharpAppProperties

    Class SharpFileOpenDialogWpf

    A file open dialog for WPF.

    Inheritance
    object
    SharpFileOpenDialogWpf
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SharpDialogs.Wpf
    Assembly: SharpDialogs.Wpf.dll
    Syntax
    public static class SharpFileOpenDialogWpf

    Methods

    | Edit this page View Source

    ShowMultiSelect(Window?, string?, string?, string?, IReadOnlyCollection<SharpDialogFilter>?, int)

    Shows a dialog to select multiple open filenames.

    Declaration
    public static IReadOnlyList<string>? ShowMultiSelect(Window? owner, string? title = null, string? initialDirectory = null, string? defaultFileName = null, IReadOnlyCollection<SharpDialogFilter>? filters = null, int selectedFilterIndex = -1)
    Parameters
    Type Name Description
    Window owner

    The onwer window.

    string title

    The title of the dialog.

    string initialDirectory

    The initial directory.

    string defaultFileName

    The default filename.

    IReadOnlyCollection<SharpDialogFilter> filters

    The files filter.

    int selectedFilterIndex

    The index of the selected filter.

    Returns
    Type Description
    IReadOnlyList<string>

    Returns selected open filenames.

    | Edit this page View Source

    ShowMultiSelect(Window?, string?, string?, string?, string, int)

    Shows a dialog to select multiple open filenames.

    Declaration
    public static IReadOnlyList<string>? ShowMultiSelect(Window? owner, string? title, string? initialDirectory, string? defaultFileName, string windowsFilter, int selectedFilterIndex)
    Parameters
    Type Name Description
    Window owner

    The onwer window.

    string title

    The title of the dialog.

    string initialDirectory

    The initial directory.

    string defaultFileName

    The default filename.

    string windowsFilter

    The files filter.

    int selectedFilterIndex

    The index of the selected filter.

    Returns
    Type Description
    IReadOnlyList<string>

    Returns selected open filenames.

    | Edit this page View Source

    ShowSingleSelect(Window?, string?, string?, string?, IReadOnlyCollection<SharpDialogFilter>?, int)

    Shows a dialog to select a single open filename.

    Declaration
    public static string? ShowSingleSelect(Window? owner, string? title = null, string? initialDirectory = null, string? defaultFileName = null, IReadOnlyCollection<SharpDialogFilter>? filters = null, int selectedFilterIndex = -1)
    Parameters
    Type Name Description
    Window owner

    The onwer window.

    string title

    The title of the dialog.

    string initialDirectory

    The initial directory.

    string defaultFileName

    The default filename.

    IReadOnlyCollection<SharpDialogFilter> filters

    The files filters.

    int selectedFilterIndex

    The index of the selected filter.

    Returns
    Type Description
    string

    Returns the selected open filename.

    | Edit this page View Source

    ShowSingleSelect(Window?, string?, string?, string?, string, int)

    Shows a dialog to select a single open filename.

    Declaration
    public static string? ShowSingleSelect(Window? owner, string? title, string? initialDirectory, string? defaultFileName, string windowsFilter, int selectedFilterIndex)
    Parameters
    Type Name Description
    Window owner

    The onwer window.

    string title

    The title of the dialog.

    string initialDirectory

    The initial directory.

    string defaultFileName

    The default filename.

    string windowsFilter

    The files filter.

    int selectedFilterIndex

    The index of the selected filter.

    Returns
    Type Description
    string

    Returns the selected open filename.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright Jérémy Ansel (c) 2025