2012-02-28 82 views
0

當前正在創建一個Kinect應用程序,只是想知道是否可以在懸停點擊事件中禁用「Controls:HoverButton」。是否可以禁用Controls:HoverButton?

代碼嘗試:

hoverbutton_Clicked(object sender, RoutedEventArgs e) 

{ 
anotherhoverbuttononthesameform.IsEnabled = true;} 

此方法不從能夠選擇停止「anotherhoverbuttononthesameform」懸停按鈕。

任何幫助將不勝感激。謝謝。

回答

0

您的代碼似乎與您所描述的相反;它將設置名爲anotherhoverbuttononthesameform的控件啓用。您是否嘗試將IsEnabled設置爲false而不是true

相關問題