开发者

silverlight bug?

开发者 https://www.devze.com 2023-03-11 07:19 出处:网络
I need your help! I have some usercontrol in which hovering mouse on this keyword threw an strange error

I need your help!

I have some usercontrol in which hovering mouse on this keyword threw an strange error

class Puzzle : UserControl {

 public void Animate()
 {
        this.SetValue(Canvas开发者_如何学C.TopProperty, 0.0); // expression has been evaluated and has no value

  }   
}

what is wrong with this approach?


From your followup comment, you are trying to watch a method call on a method that has a void return type.

The debugger is trying to be helpful by telling you it has no value.

Try adding a watch on the matching GetValue method instead :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号