The Diagram, Node, and DataTemplateDictionary classes were designed to not need to be subclassed except in very uncommon circumstances.
The only classes that one might expect to subclass are the model data classes. The classes that are sometimes subclassed are the …Tools and the CommandHandler and the PartManager and the …Layouts. Oh, and Converter.
So I’m wondering why you think you need to inherit from Diagram and Node and DataTemplateDictionary. Perhaps there’s an easier way to organize the functionality of your application.
Well, you certainly can subclass all of those classes. I believe we tried that before we shipped version 1.0 to make sure that that worked.
But that’s a lot of work and I don’t see the advantage of doing so. There’s more work to subclassing Controls than just the class definition. You’ll also need to copy and adapt all(?) of the stuff in Generic.XAML.
like how you build goxam on top of Microsoft Siliverlight framework...
bye the way..
not able to sub class
CustomPart : Part
i got the following execption even after implmenting abstract properites of Part class
Compile time errors:
Error 1 'Suren.CustomGoxam.CustomPart' does not implement inherited abstract member 'Northwoods.GoXam.Part.#Ij(bool)' D:\Suren\GoSilverlight 1.2.2.4\Samples\GoSilverlightDemo\CustomGoxam\CustomGoxam\Custom.cs 30 18 Suren Error 2 'Suren.CustomGoxam.CustomPart' does not implement inherited abstract member 'Northwoods.GoXam.Part.#tg(System.Windows.Rect)' D:\Suren\GoSilverlight 1.2.2.4\Samples\GoSilverlightDemo\CustomGoxam\CustomGoxam\Custom.cs 30 18 Suren Error 3 'Suren.CustomGoxam.CustomPart' does not implement inherited abstract member 'Northwoods.GoXam.Part.#Fj()' D:\Suren\GoSilverlight 1.2.2.4\Samples\GoSilverlightDemo\CustomGoxam\CustomGoxam\Custom.cs 30 18 Suren Error 4 'Suren.CustomGoxam.CustomPart' does not implement inherited abstract member 'Northwoods.GoXam.Part.#Ej()' D:\Suren\GoSilverlight 1.2.2.4\Samples\GoSilverlightDemo\CustomGoxam\CustomGoxam\Custom.cs 30 18 Suren Error 5 'Suren.CustomGoxam.CustomPart' does not implement inherited abstract member 'Northwoods.GoXam.Part.#Dj(bool)' D:\Suren\GoSilverlight 1.2.2.4\Samples\GoSilverlightDemo\CustomGoxam\CustomGoxam\Custom.cs 30 18 Suren