【发布时间】:2010-06-21 14:18:47
【问题描述】:
我开始使用触摸屏进行一些测试,我发现如果 UIControl 的“IsManipulationEnabled”属性设置为 true,则不会捕获由按住手势 (WIN7) 触发的 MouseRightClick 事件.我做错了吗?
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());
}
【问题讨论】:
标签: wpf events touchscreen right-click