0
我需要以下指导。操纵事件应该直到视觉树直到被处理?操作事件路由
我有以下几点:
Canvas canvas = new Canvas();
canvas.Width = 1920;
canvas.Height = 1200;
canvas.IsManipulationEnabled = true;
canvas.AddHandler(ManipulationStartingEvent, new EventHandler<ManipulationStartingEventArgs>(CanvasManipulationStarting), true);
ScatterViewItem svi = new ScatterViewItem();
svi.AddHandler(ManipulationStartingEvent, new EventHandler<ManipulationStartingEventArgs>(SVIManipulationStarting), true);
svi.Content = canvas;
public void SVIManipulationStarting(object sender, ManipulationStartingEventArgs e)
{
//e.Handled = true; //This fires if uncommented
}
public void CanvasManipulationStarting(object sender, ManipulationStartingEventArgs e)
{
e.Handled = true; //This never fires regardless :(sob
}
如果我点击画布,在SVIManipulationStarting火上,但如果它是注释掉的CanVasManipulationStarting永远不会触发?