silverlight上委派出現的error message "偵測到配置循環。配置無法完成"
-
2012年4月12日 上午 09:37
如題,看起來是需要釋放甚麼的意思嗎 ?
程式碼如下
AddHandler graphic_excepted.MouseLeftButtonDown, Sub(s As Object, e As GraphicMouseButtonEventArgs) MyInfoWindow.Anchor = CType(e.Graphic.Geometry, MapPoint) MyInfoWindow.Content = e.Graphic.Attributes MyInfoWindow.ContentTemplate = CType(usercontrol.Resources("ExceptedLineTemplate"), DataTemplate) MyInfoWindow.IsOpen = True End Sub AddHandler graphic_actual.MouseLeftButtonDown, Sub(s As Object, e As GraphicMouseButtonEventArgs) MyInfoWindow.Anchor = CType(e.Graphic.Geometry, MapPoint) MyInfoWindow.Content = e.Graphic.Attributes MyInfoWindow.ContentTemplate = CType(usercontrol.Resources("ActualLineTemplate"), DataTemplate) MyInfoWindow.IsOpen = True End Sub
所有回覆
-
2012年4月12日 下午 01:15
我上次遇到這情況是事件處理時又觸發相同事件,所以事件一直處理不完。 -
2012年4月13日 上午 08:42graphic_actual和graphic_expected是什麼東東? 不要兩個都處理事件應該就可以了
-
2012年4月16日 上午 12:54回阿尼,的確是如此,感謝您。
-
2012年4月16日 上午 12:55
回this,抱歉沒說明清楚,graphic_actual、graphic_expected是兩個graphic layer型態的圖層。
我是去做圖層的觸發動作。

