Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramNode subtype + Custom UIElement (Read 2271 times)
JasonB
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: Jun 5th, 2008
DiagramNode subtype + Custom UIElement
Jun 16th, 2008 at 9:28pm
Print Post  
Is it possible to use a subtype of DiagramNode with a custom UIElement? Right now I just use a custom UIElement and behind the scenes a DiagramNodeAdapter is created for me; I'd like to be able to use a subtype of  DiagramNode and my custom UIElement.  but DiagramNode.UIElement is read-only. Is there some obvious way that I am missing?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramNode subtype + Custom UIElement
Reply #1 - Jun 17th, 2008 at 4:58am
Print Post  
You could inherit from DiagramNode or a derived class and override the UIElement property to return a custom UIElement. Then you will probably see the visuals for both the custom element and the base class, so you might want to override the Draw method with an empty implementation.

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