microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Can't open text selection context menu

Open Sanlorng opened this issue 3 years ago • 0 comments

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

  • [ ] UWP
  • [X] Win32

Device form factor

Desktop

Windows version

Windows Insider Build (xxxxx)

Additional context

No response

Sanlorng avatar Aug 10 '22 09:08 Sanlorng