-
-
Save jfversluis/de0fdcaf06f18d92d0ab818106c98a5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MauiFolderPickerSample; | |
public partial class MainPage : ContentPage | |
{ | |
private readonly IFolderPicker _folderPicker; | |
public MainPage(IFolderPicker folderPicker) | |
{ | |
InitializeComponent(); | |
_folderPicker = folderPicker; | |
} | |
private async void OnPickFolderClicked(object sender, EventArgs e) | |
{ | |
var pickedFolder = await _folderPicker.PickFolder(); | |
FolderLabel.Text = pickedFolder; | |
SemanticScreenReader.Announce(FolderLabel.Text); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment