Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将mouseleftbuttondown传递给Silverlight中ZIndex较低的控件_Silverlight - Fatal编程技术网

将mouseleftbuttondown传递给Silverlight中ZIndex较低的控件

将mouseleftbuttondown传递给Silverlight中ZIndex较低的控件,silverlight,Silverlight,我有一个Silverlight 3应用程序,其网格布局根目录的内部如下所示: <!-- other controls go here --> <Canvas Canvas.ZIndex="10000" MouseMove="MoveCursor" Background="#00000000"> <Image Source="badcursor.jpg" x:Name="CustomCursor"/> </Canvas> <!-- some

我有一个Silverlight 3应用程序,其网格布局根目录的内部如下所示:

<!-- other controls go here -->
<Canvas Canvas.ZIndex="10000" MouseMove="MoveCursor" Background="#00000000">
  <Image Source="badcursor.jpg" x:Name="CustomCursor"/>
</Canvas>
<!-- some more other controls -->

画布旨在覆盖页面上的所有其他内容,但不可见,以便我使用自定义游标badcursor.jpg。但是,现在当我单击页面上的任意位置时,MouseLeftButtonDown并没有在任何其他控件上触发,我假设这是因为它是由画布处理的,因为它的Z索引比任何其他控件都高(这是显示光标所必需的!)


是否有人知道如何让画布下的控件查看事件,或者有更好的方法来执行我尝试执行的操作?

通过在画布和图像上将IshittesVisible设置为false来解决此问题