Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mindfusion Object Inherritance (Read 3626 times)
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Mindfusion Object Inherritance
Mar 17th, 2008 at 1:58pm
Print Post  
Hi Stoyan

We have started looking into extending the DiagramNode class in order to hold additional information - when inheriting from Mindfusion.Diagramming.Wpf.DiagramNode and overriding the Draw method I get the following error in VS:

Class 'TestSfenode' must either be declared 'MustInherit' or override the following inherited 'MustOverride' member(s):
    MindFusion.Diagramming.Wpf.DiagramItem : Friend MustOverride Sub xc698485eba912f6e(x41347a961b838962 As System.Windows.Media.DrawingContext).


my class definition is as follows:

Public Class nodetest
    Inherits MindFusion.Diagramming.Wpf.DiagramNode


    Public Overrides Sub Draw(ByVal graphics As System.Windows.Media.DrawingContext, ByVal options As MindFusion.Diagramming.Wpf.RenderOptions)

    End Sub
End Class



Are you able to shed any light on this?


Many thanks


Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mindfusion Object Inherritance
Reply #1 - Mar 17th, 2008 at 2:20pm
Print Post  
Hi Paul,

It seems some abstract method of DiagramNode has the "internal" modifier. For now, derive your class from ShapeNode or TableNode.

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