Closed Charltsing closed 2 months ago
System.InvalidOperationException HResult=0x80131509 Message=调用线程必须为 STA,因为许多 UI 组件都需要。 Source=PresentationCore StackTrace: 在 System.Windows.Input.InputManager..ctor() 在 System.Windows.Input.InputManager.GetCurrentInputManagerImpl() 在 System.Windows.Input.KeyboardNavigation..ctor() 在 System.Windows.FrameworkElement.FrameworkServices..ctor() 在 System.Windows.FrameworkElement..ctor() 在 System.Windows.Controls.Control..ctor() 在 PicView.WPF.Views.UserControls.Misc.DragDropOverlay..ctor() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\Views\UserControls\Misc\DragDropOverlay.xaml.cs 中: 第 8 行 在 PicView.WPF.UILogic.DragAndDrop.ImageDragAndDrop.AddDragOverlay() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\UILogic\DragAndDrop\Image_DragAndDrop.cs 中: 第 234 行 在 PicView.WPF.UILogic.DragAndDrop.ImageDragAndDrop.d__1.MoveNext() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\UILogic\DragAndDrop\Image_DragAndDrop.cs 中: 第 91 行 在 PicView.WPF.Views.Windows.MainWindow.<>c.<<-ctor>b__0_14>d.MoveNext() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\Views\Windows\MainWindow.xaml.cs 中: 第 126 行
Thanks for your bug report.
This has been added in the 2.2.6 release.
System.InvalidOperationException HResult=0x80131509 Message=调用线程必须为 STA,因为许多 UI 组件都需要。 Source=PresentationCore StackTrace: 在 System.Windows.Input.InputManager..ctor() 在 System.Windows.Input.InputManager.GetCurrentInputManagerImpl() 在 System.Windows.Input.KeyboardNavigation..ctor() 在 System.Windows.FrameworkElement.FrameworkServices..ctor() 在 System.Windows.FrameworkElement..ctor() 在 System.Windows.Controls.Control..ctor() 在 PicView.WPF.Views.UserControls.Misc.DragDropOverlay..ctor() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\Views\UserControls\Misc\DragDropOverlay.xaml.cs 中: 第 8 行 在 PicView.WPF.UILogic.DragAndDrop.ImageDragAndDrop.AddDragOverlay() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\UILogic\DragAndDrop\Image_DragAndDrop.cs 中: 第 234 行 在 PicView.WPF.UILogic.DragAndDrop.ImageDragAndDrop.d__1.MoveNext() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\UILogic\DragAndDrop\Image_DragAndDrop.cs 中: 第 91 行
在 PicView.WPF.Views.Windows.MainWindow.<>c.<<-ctor>b__0_14>d.MoveNext() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\Views\Windows\MainWindow.xaml.cs 中: 第 126 行