Skip to content

DataTransferManager cannot share in elevated mode #6216

@Gaoyifei1011

Description

@Gaoyifei1011

Describe the bug

DataTransferManager cannot share in elevated mode

-----------------------------

DataTransferManager 不能在提权模式下进行分享


As shown in the figure, when running in administrator mode and performing a share operation through DataTransferManager, although the share panel can be opened via the IDataTransferManagerInterop interface, the DataRequested event of DataTransferManager does not trigger properly, causing file sharing to fail. It is hoped that future versions of Windows can fix this bug, or that the Windows App SDK can provide an appropriate alternative solution.

-----------------------------

如图所示,应用在管理员模式下,通过 DataTransferManager 进行分享操作时,虽然可以通过 IDataTransferManagerInterop 接口打开分享面板,但是 DataTransferManagerDataRequested 事件并不能正常触发,故文件分享失败。希望未来 Windows 能修复一下这个 bug,或 Windows App SDK 能提供相应的替代方案。

Image

Steps to reproduce the bug

See description

Expected behavior

See description

Screenshots

See description

NuGet package version

Windows App SDK 1.8.5

Packaging type

MSIX

Windows version

Windows 11 beta 26220.7755

IDE

Visual Studio 2026

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions