Skip to content

Commit 9a2edf2

Browse files
Zakariathr22niels9001marcelwgn
authored
Adopt new storage pickers from WinAppSDK 1.8 (#2044)
## Description **Main changes:** * Upgrade WinAppSDK package in **WinUIGallery** project to **1.8** * Rename **File Picker** page to **Storage pickers** page for accuracy (covers file & folder pickers) * Rename corresponding sample image * Add new examples with available picker options: * pick single file, * pick multiple files, * save file, * and pick folder * Include a note explaining `SuggestedStartLocation` and `ViewMode` behavior * Update **RichEditBox** (3rd example) to use the new **Storage Pickers** APIs * Remove obsolete sample code files ## Motivation and Context - Closes #2043 ## How Has This Been Tested? Manually tested ## Screenshots (if appropriate): <img width="1426" height="746" alt="image" src="https://github.com/user-attachments/assets/64a314cc-3b16-41c8-8047-00e5a386b46b" /> <img width="1432" height="751" alt="image" src="https://github.com/user-attachments/assets/8a8011fc-9c00-4c7a-9453-f5ab17f93f0e" /> <img width="1434" height="753" alt="image" src="https://github.com/user-attachments/assets/8114d077-c23d-40bc-9337-23ba3495a134" /> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) --------- Co-authored-by: Niels Laute <niels.laute@live.nl> Co-authored-by: Marcel Wagner <marcelwagner@microsoft.com>
1 parent 96dc185 commit 9a2edf2

20 files changed

+722
-899
lines changed

WinUIGallery/ContentIncludes.props

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<Content Include="Assets\ControlImages\DropDownButton.png" />
4040
<Content Include="Assets\ControlImages\EasingFunction.png" />
4141
<Content Include="Assets\ControlImages\Expander.png" />
42-
<Content Include="Assets\ControlImages\FilePicker.png" />
4342
<Content Include="Assets\ControlImages\FlipView.png" />
4443
<Content Include="Assets\ControlImages\Flyout.png" />
4544
<Content Include="Assets\ControlImages\Grid.png" />
@@ -235,16 +234,6 @@
235234
<Content Include="Samples\SampleCode\NavigationView\NavigationViewSample9_xaml.txt" />
236235
<Content Include="Samples\SampleCode\NumberBox\NumberBoxSample3_cs.txt" />
237236
<Content Include="Samples\SampleCode\NumberBox\NumberBoxSample3_xaml.txt" />
238-
<Content Include="Samples\SampleCode\System\FilePickerSample1_cs.txt" />
239-
<Content Include="Samples\SampleCode\System\FilePickerSample1_xaml.txt" />
240-
<Content Include="Samples\SampleCode\System\FilePickerSample2_cs.txt" />
241-
<Content Include="Samples\SampleCode\System\FilePickerSample2_xaml.txt" />
242-
<Content Include="Samples\SampleCode\System\FilePickerSample3_cs.txt" />
243-
<Content Include="Samples\SampleCode\System\FilePickerSample3_xaml.txt" />
244-
<Content Include="Samples\SampleCode\System\FilePickerSample4_cs.txt" />
245-
<Content Include="Samples\SampleCode\System\FilePickerSample4_xaml.txt" />
246-
<Content Include="Samples\SampleCode\System\FilePickerSample5_cs.txt" />
247-
<Content Include="Samples\SampleCode\System\FilePickerSample5_xaml.txt" />
248237
<Content Include="Samples\SampleCode\System\Window.txt" />
249238
<Content Include="Samples\SampleCode\SystemBackdrops\SystemBackdropsSampleBackdropTypes_cs.txt" />
250239
<Content Include="Samples\SampleCode\SystemBackdrops\SystemBackdropsSampleBackdropTypes_xaml.txt" />

WinUIGallery/Samples/ControlPages/FilePickerPage.xaml

Lines changed: 0 additions & 203 deletions
This file was deleted.

0 commit comments

Comments
 (0)