I'm trying to add a new object programmatically but whenever I try I get the following error:
Could not determine the outline of UIElement bola634159077085944453. Could not find a point within its boundaries.
Here is my code on a button click handler:
Dim b As New Ellipse
b.Height = 22
b.Width = 22
'note that these 2 lines will return nothing!! why?
Dim p = PhysicsControllerMain.GetPhysicsController(pantalla)
p = pantalla.GetValue(PhysicsControllerMain.PhysicsControllerProperty)
'and this will raise the error
Besides the error informed above I'm unable to get a reference to the PhysicsControllerMain and I have to name it in order to get a reference to it. I followed the example in the home page but
it seems not to work.
Just to clarify:
pantalla => is the main canvas
phController => PhysicsControllerMain
I got a PhysicsControllerMain and a PhysicsStaticHolder. I googled for this error with no success. Anyone there that can help me with this? I'm using Blend 4 and targeting Blend 4 too, with the
Change Set 55578.