0
如何在windows phone7中阻止图像控制或对象的用户交互?如何在Windows Phone 7中阻止用户与图像控制的交互?
如何在windows phone7中阻止图像控制或对象的用户交互?如何在Windows Phone 7中阻止用户与图像控制的交互?
通过阻止图像控制的交互,你是什么意思?只有当你给予点击或点击等任何事件处理程序时,用户才能进行交互。如果你没有给出任何事情,用户不能进行交互。
如果您已经提供并稍后想限制它,则可以使用isEnabled
或isHitTestVisible
属性,方法是将其中一个属性设置为false。
myImage.isHitTestVisible = false; //Disables all the gestures like click etc on this control
or
myImage.isEnabled = false; //Disables and greyouts the control