本文介绍了DoubleClick ScrollViewer子级检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好.

我有下面的ScrollViewer控件,该控件包含一个扩展面板,该扩展面板的子元素是图像.我可以捕获滚动查看器上的双击,但是我想知道如何找到正在双击的子图像.

Good day.

I have the following ScrollViewer control that houses a dockpanel, who''s child elements are images. I can capture a double click on the scrollviewer, but I want to know how to find which child image is being double clicked.

<scrollviewer name="svScreenshots" grid.row="3" grid.column="1" grid.rowspan="2" grid.columnspan="2">
                      VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Hidden" 
                      MouseMove="svScreenshots_MouseMove" CanContentScroll="False" 
                      HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" 
                      PanningMode="HorizontalOnly" PanningDeceleration="10" Margin="10,10,30,10" 
                      IsDeferredScrollingEnabled="False" 
                      uc:KineticBehaviour.HandleKineticScrolling="True" MouseDoubleClick="svScreenshots_MouseDoubleClick">
            <dockpanel name="imgDockPanel" lastchildfill="False" removed="#FFCEC9C9" margin="5" mousedown="imgDockPanel_MouseDown" />
        </scrollviewer>



该怎么办呢?

谢谢

Jib



How can this be done?

Thank you,

Jib

推荐答案


这篇关于DoubleClick ScrollViewer子级检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 15:05