开发者

silverlight bug?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜