Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 7 如何在WindowsPhone7中阻止用户与图像控件的交互?_Windows Phone 7_C# 4.0_Silverlight 4.0 - Fatal编程技术网

Windows phone 7 如何在WindowsPhone7中阻止用户与图像控件的交互?

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

如何在windows phone7中阻止图像控件或对象的用户交互?

阻止图像控件的交互是什么意思?用户只能在您提供任何事件处理程序(如单击或点击等)时进行交互。如果您不提供任何事件处理程序,则用户无法进行交互

如果您已经给出并且以后想要限制它,则可以通过将其中一个属性设置为false来使用
isEnabled
IsitTestVisible
属性

myImage.isHitTestVisible = false; //Disables all the gestures like click etc on this control

or 

myImage.isEnabled = false; //Disables and greyouts the control