Windows phone 7 如何在WindowsPhone7中阻止用户与图像控件的交互?
如何在windows phone7中阻止图像控件或对象的用户交互?阻止图像控件的交互是什么意思?用户只能在您提供任何事件处理程序(如单击或点击等)时进行交互。如果您不提供任何事件处理程序,则用户无法进行交互 如果您已经给出并且以后想要限制它,则可以通过将其中一个属性设置为false来使用Windows phone 7 如何在WindowsPhone7中阻止用户与图像控件的交互?,windows-phone-7,c#-4.0,silverlight-4.0,Windows Phone 7,C# 4.0,Silverlight 4.0,如何在windows phone7中阻止图像控件或对象的用户交互?阻止图像控件的交互是什么意思?用户只能在您提供任何事件处理程序(如单击或点击等)时进行交互。如果您不提供任何事件处理程序,则用户无法进行交互 如果您已经给出并且以后想要限制它,则可以通过将其中一个属性设置为false来使用isEnabled或IsitTestVisible属性 myImage.isHitTestVisible = false; //Disables all the gestures like click etc o
isEnabled
或IsitTestVisible
属性
myImage.isHitTestVisible = false; //Disables all the gestures like click etc on this control
or
myImage.isEnabled = false; //Disables and greyouts the control