Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Windows.Storage.Pickers.FileOpenPicker.PickSingleFileAsync #4945

Conversation

DinahK-2SO
Copy link
Contributor

@DinahK-2SO DinahK-2SO commented Dec 9, 2024

Description

FileOpenPicker that supports both usage scenario in normal mode and admin mode

var openPicker = new Microsoft.Windows.Storage.Pickers.FileOpenPicker();
var file = await openPicker.PickSingleFileAsync();
if (file != null)
{
    var content = await Windows.Storage.FileIO.ReadTextAsync(file);
    // do something
}

Demo

FileOpenPicker2

@DinahK-2SO DinahK-2SO changed the base branch from user/xianghong/pickers-prototype to main December 9, 2024 23:52
@DinahK-2SO DinahK-2SO changed the base branch from main to user/xianghong/pickers-prototype December 9, 2024 23:57
@DinahK-2SO DinahK-2SO merged commit bbf72f8 into user/xianghong/pickers-prototype Dec 10, 2024
1 check passed
@DinahK-2SO DinahK-2SO deleted the user/xiaomgao/file_open_picker__one_step branch December 10, 2024 03:01
@MartyIX
Copy link

MartyIX commented Dec 10, 2024

Does this PR fix #2504?

DinahK-2SO added a commit that referenced this pull request Dec 12, 2024
…4945)

Creating new API Microsoft.Windows.Storage.Pickers.FileOpenPicker.PickSingleFileAsync
DinahK-2SO added a commit that referenced this pull request Dec 12, 2024
…ype-workingdir\Microsoft.Storage.Pickers

Squashed commit of the following:

commit 4ce840f
Author: Dinah Gao <x.kic8462852@gmail.com>
Date:   Wed Dec 11 15:00:41 2024 +0800

    add one telemetry

commit bbf72f8
Author: Dinah Gao <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Dec 10 11:01:23 2024 +0800

    Microsoft.Windows.Storage.Pickers.FileOpenPicker.PickSingleFileAsync (#4945)

    Creating new API Microsoft.Windows.Storage.Pickers.FileOpenPicker.PickSingleFileAsync

commit ff3f2a8
Author: Xiang Hong <hx.hongxiang@gmail.com>
Date:   Mon Dec 9 18:14:16 2024 +0800

    fix: fix project configuration and add certificate notes to README.md

commit e11c8e6
Author: Xiang Hong (from Dev Box) <xianghong@microsoft.com>
Date:   Sun Dec 8 20:54:23 2024 +0800

    update readme for folder description

commit c6966f3
Author: Xiang Hong (from Dev Box) <xianghong@microsoft.com>
Date:   Sun Dec 8 20:08:46 2024 +0800

    add a simple READEME

commit c17750f
Author: Xiang Hong (from Dev Box) <xianghong@microsoft.com>
Date:   Sun Dec 8 11:27:04 2024 +0800

    feature: add basic implementations for SavePickers FileExtension/SuggestedSaveFile/Name functionalities

commit 3be9dc1
Author: Xiang Hong (from Dev Box) <xianghong@microsoft.com>
Date:   Sun Dec 8 10:35:59 2024 +0800

    clean: code clean on naming styles etc

commit 9fcc249
Author: Xiang Hong (from Dev Box) <xianghong@microsoft.com>
Date:   Sat Dec 7 22:22:21 2024 +0800

    refactor: use WinRT MD5 hash string to Guid

commit 756bafa
Author: Xiang Hong (from Dev Box) <xianghong@microsoft.com>
Date:   Sat Dec 7 22:02:55 2024 +0800

    fix: fix file type filter issues and refactor to use PickParameters

commit 8dea72a
Author: Xiang Hong (from Dev Box) <xianghong@microsoft.com>
Date:   Sat Dec 7 19:46:45 2024 +0800

    feature: add COM FileSavePicker basic implementation

commit 37a5a75
Author: Xiang Hong <hx.hongxiang@gmail.com>
Date:   Sat Dec 7 17:13:55 2024 +0800

    add save file dialog usage in demo app

commit fc9a03a
Author: Xiang Hong <hx.hongxiang@gmail.com>
Date:   Sat Dec 7 12:06:47 2024 +0800

    feature: add folder functionalities to demo test app

commit 34556bd
Author: Xiang Hong <hx.hongxiang@gmail.com>
Date:   Fri Dec 6 22:51:55 2024 +0800

    feature: add COM based picker prototype basic implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants