Skip to content

Commit

Permalink
[FIX] Fix typo in file picker sample source (#1497)
Browse files Browse the repository at this point in the history
There was a mismatch in the name for TextBlock control in the first
FilePicker sample. Changed name from `OutputTextBlock` to
`PickAFileOutputTextBlock` in the sample source text file.
  • Loading branch information
zateutsch committed Mar 21, 2024
1 parent 4f49456 commit 43c4282
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
private async void PickAFileButton_Click(object sender, RoutedEventArgs e)
{
// Clear previous returned file name, if it exists, between iterations of this scenario
OutputTextBlock.Text = "";
PickAFileOutputTextBlock.Text = "";

// Create a file picker
var openPicker = new Windows.Storage.Pickers.FileOpenPicker();
Expand Down Expand Up @@ -29,4 +29,4 @@
{
PickAFileOutputTextBlock.Text = "Operation cancelled.";
}
}
}

0 comments on commit 43c4282

Please sign in to comment.