我开始使用触摸屏进行一些测试,并且发现如果UIControl的“IsManipulationEnabled”属性设置为true,则不会捕获由按住手势(WIN7)触发的MouseRightClick事件。难道我做错了什么?当设置IsManipulationEnabled时,WPF控件不会捕获按住事件(右键单击)
public MainWindow()
{
InitializeComponent();
WC_Rectangle.IsManipulationEnabled = true;
WC_Rectangle.MouseRightButtonUp += new MouseButtonEventHandler(WC_Rectangle_MouseRightButtonUp);
}
void WC_Rectangle_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
{
System.Diagnostics.Debug.WriteLine("RIGHT CLICK : " + sender.ToString());
}