microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.32k stars 676 forks source link

Can't open text selection context menu #7582

Closed Sanlorng closed 1 year ago

Sanlorng commented 2 years ago

Describe the bug

when some text selected, and right click selected text, the app will crash and show the error information 0x767487E2 (KernelBase.dll)处(位于 DandanPlay For WinUI 3.exe 中)引发的异常: WinRT originate error - 0x80070490 : 'Element not found.'。 0x767487E2 处(位于 DandanPlay For WinUI 3.exe 中)引发的异常: Microsoft C++ 异常: winrt::hresult_error,位于内存位置 0x0057DC10 处。

Steps to reproduce the bug

  1. Create WinUI App
  2. Add TextBlock in the MainWindow.xaml and add TextBlock.IsTextSelectionEnabled="True"
  3. select text, and right click selected text
  4. App crash

Expected behavior

right click selected text can display selection context menu

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.1.3

Windows app type

Device form factor

Desktop

Windows version

Windows Insider Build (xxxxx)

Additional context

No response

JJBrychell commented 1 year ago

While I could repro this on a 1.1 build, I wasn't able to repro it on any from 1.3 or later so I am going to close this as fixed. If it still exists in recent releases of WinAppSdk, feel free to reactivate.