Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ShapeNode.ResizeToFitImage (Read 1807 times)
TheMonkey
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Nov 21st, 2008
ShapeNode.ResizeToFitImage
Dec 12th, 2008 at 3:39pm
Print Post  

Under "Items Placement - Position, Size and Z-order" -> "Location and Size of Nodes" in the documentation, it says that "ShapeNode.ResizeToFitImage [...] methods set nodes' sizes to fit that of their pictures".

I cannot find this method.

How does one resize to fit contents of a shapenode anyway? I have set the contents to be a UserControl, but the bounds do not change to surround this control.

Also, I can select the node by clicking my control, but trying to drag it causes SL to crash.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode.ResizeToFitImage
Reply #1 - Dec 12th, 2008 at 4:01pm
Print Post  
Have you added the UserControl to a ShapeNode? You should use ControlNodes to host custom controls.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint