English 中文(简体)
WinUI3 MONZA:DdiThreadingContext 排外法
原标题:WinUI3 MONZA::DdiThreadingContext Exception while drag and drop

我在放弃一个被拖拉的项目(任何项目)时,会得出以下例外规定,而Droop打退则不工作。 我试图宣布其他部分的退约,但结果相同。

C++/WinRT version: 2.0.230706.1
WindowsAppSDK Version: 1.4.230913002

错误:

Microsoft C++ exception: MONZA::DdiThreadingContext<MONZA::AdapterTraits_Gen12LP>::msg_end at memory location 0x0000001AFB4FFDF0.

这就是我如何宣布退席:

<Border x:Name="BorderName"
        BorderBrush="{StaticResource BorderColor}"
        BorderThickness="1"
        Padding="16,8"
        AllowDrop="True"
        Drop="Image_OnDrop">

Any idea what could be the problem? The exception doesn t crash the app, but the drop callback is not called.

st痕:

>   KernelBase.dll!00007ffdc7454ffc()   Unknown
    igd10um64xe.dll!00007ffdb93e2830()  Unknown
    igd10um64xe.dll!00007ffdb98c1d9c()  Unknown
    igd10um64xe.dll!00007ffdb92c3aff()  Unknown
    igd10um64xe.dll!00007ffdb93b8b26()  Unknown
    igd10um64xe.dll!00007ffdb93f3d6a()  Unknown
    kernel32.dll!00007ffdc8c4257d() Unknown
    ntdll.dll!00007ffdc9caaa78()    Unknown
问题回答

First, you need to add a background to the border.

And then you need to handle the DragOver event. You need to specify what kind of operations your app supports by using the AcceptedOperation property.

详情请参看Doc:

就我而言,可以忽略这一例外。





相关问题
How to display all installed fonts in a ComboBox

I need to display all the user s installed fonts in a WinUI 3 ComboBox. I m using this code: <ComboBox x:Name="FontComboBox" ItemsSource="{Binding Source={x:Static Fonts....

图3

我似乎不能让我的WinUI 3 Button展示形象。

Can t use WinUI 3个Picker

I m试图在我的Windows App SDK(WinUI 3)申请中展示一个卷宗。 I m 将其列入C#。

热门标签