Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ContainerStyle.RoundedRectangle (Read 3501 times)
mihai
Junior Member
**
Offline



Posts: 86
Joined: Jul 29th, 2009
ContainerStyle.RoundedRectangle
Sep 15th, 2009 at 7:53am
Print Post  
Hi,

Is there an easy way to have this feature for the ContainerNode, similar to the TableNode's? So that we can have:
Code
Select All
// Sets container's shape to rounded rectangle.
containerNode.Style = ContainerStyle.RoundedRectangle; 


If this can't be implemented soon, can you please give me some DIY instructions?

Thanks in advance,
-Mihai
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ContainerStyle.RoundedRectangle
Reply #1 - Sep 15th, 2009 at 8:33am
Print Post  
Hi,

You could do that by overriding the containers' Draw method as shown here:
http://mindfusion.eu/_samples/RoundedContainerNode.cs

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
mihai
Junior Member
**
Offline



Posts: 86
Joined: Jul 29th, 2009
Re: ContainerStyle.RoundedRectangle
Reply #2 - Sep 15th, 2009 at 8:59am
Print Post  
Hi Stoyan,

Thank you very much - it works like a charm!

Have a great day,
-Mihai
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint