inherit controls


 i inheriting  procedure 2 classes.. problem error because adding control 2 times.

how around ?it looks cant inherit controls

 

class1

  public overridable sub loadequationinput()
        canvas.setleft(tb6, 200)
        canvas.settop(tb6, 45)
        canvas1.children.add(tb6)
..

class2 inherits class1

  public overrides sub loadequationinput()
        mybase.loadequationinput()

 

class3 inherits class1

public overrides sub loadequationinput()
        mybase.loadequationinput()

 

 

 

 

 

 

 

canvas1.children.add(tb6) 'gets called 2 times  can once.
inheritance not easy silverlight looks of it. going need re-write whole class again



Silverlight  >  Getting Started with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........