Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / FilePicker Class
Members Example


In This Topic
    FilePicker Class
    In This Topic
    A control offering a TextBox that allows to edit a file selection & a Browse Button that allows to open the System Explorer in order to manually pick one or more files.
    Syntax
    'Usage
     
    
    Dim instance As FilePicker
    Remarks

    It is possible to determine if the FilePicker allows only one file to be selected at a time or rather permits multiple files to be selected at once. For more information on this possibility, see the IsMultiSelect property.

    A filter can also be added so that the System Explorer only displays specific file types. For more information on this topic, see the Filter property.

    Example

    The following code would display this control:

    <xctk:FilePicker Watermark="Select a file"
                     WidthRequest="175"
                     BorderBrush="Orange"
                     BorderThickness="3"
                     CornerRadius="5"
                     Filter="Images"/>
    Inheritance Hierarchy

    System.Object
       Microsoft.Maui.Controls.BindableObject
          Microsoft.Maui.Controls.Element
             Microsoft.Maui.Controls.NavigableElement
                Microsoft.Maui.Controls.VisualElement
                   Microsoft.Maui.Controls.View
                      Microsoft.Maui.Controls.Compatibility.Layout
                         Microsoft.Maui.Controls.TemplatedView
                            Xceed.Maui.Toolkit.Control
                               Xceed.Maui.Toolkit.FilePicker

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also