C# 在WinformsHost中设置鼠标光标

C# 在WinformsHost中设置鼠标光标,c#,wpf,winforms,winforms-interop,C#,Wpf,Winforms,Winforms Interop,我正在开发一个WPF应用程序,它有一个WinformsHost元素。我尝试设置光标 对于winforms主机元素,但这没有任何效果。我试图使用窗口的ForceCursor属性,但这似乎被完全忽略了 在我的示例窗口中,左侧有一个WPF Textblock,带有一个正确使用的手动光标,但在右侧有一个WinForms PropertyGrid,我得到了相同的行为 <Window x:Class="WpfWinformsCursor.MainWindow" xmlns="http:

我正在开发一个WPF应用程序,它有一个WinformsHost元素。我尝试设置光标 对于winforms主机元素,但这没有任何效果。我试图使用窗口的ForceCursor属性,但这似乎被完全忽略了

在我的示例窗口中,左侧有一个WPF Textblock,带有一个正确使用的手动光标,但在右侧有一个WinForms PropertyGrid,我得到了相同的行为

<Window x:Class="WpfWinformsCursor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        Title="MainWindow" Height="350" Width="525"
        Cursor="ScrollAll"
        ForceCursor="False"
        >
    <Grid Cursor="Pen">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0" Cursor="Help">
            <TextBlock Cursor="Hand" />
        </Grid>
        <WindowsFormsHost Grid.Column="1" Cursor="ScrollNW">
            <wf:PropertyGrid Cursor="Hand" />
        </WindowsFormsHost>
    </Grid>
</Window>

有人能帮我正确地做这件事吗