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