Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need To Style Container on DrawContainer Behaviour (Read 1982 times)
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Need To Style Container on DrawContainer Behaviour
Jan 18th, 2011 at 12:40pm
Print Post  
Hello Stoyon,

We have implemented the ZoomToRectangle Behaviour in Silverlight, now we are trying the same in WPF.

In Silverlight to draw the selection rectangle we have set the behaviour of the diagram to Behaviours.DrawContainer, this works as it draws a semi-transparent rectangle.

But now when we implement the same in WPF, it draws a container having a title named "Container" and with a solid white background. how do i override this behaviour to make the selection rectangle as semi transparent rectangle.

Thanks,
-KayKay
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need To Style Container on DrawContainer Behav
Reply #1 - Jan 18th, 2011 at 12:59pm
Print Post  
Hi,

Try setting the container's CaptionHeight to 0 and Brush to some translucent color in response to the InitializeNode event.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Need To Style Container on DrawContainer Behav
Reply #2 - Jan 18th, 2011 at 2:43pm
Print Post  
Smiley works...

Thanks a lot once again!!!!!!!!!!!!
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint