magic987
magic987

Reputation: 25

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.TopProperty, 0.0); // expression has been evaluated and has no value

  }   
}

what is wrong with this approach?

Upvotes: 0

Views: 139

Answers (1)

iCollect.it Ltd
iCollect.it Ltd

Reputation: 93571

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 :)

Upvotes: 1

Related Questions