![]() ![]() #Networkview software plusI have added a pair of new projects to the 2010 solutions ShapesNetworkModel.2010 and ShapesSample.2010 - these follow the style of the other projects in the existing solution, and are composed with pieces of functionality from the original two examples, plus some new features. This screenshot shows the shapes graph from the new sample project. Edge calculations for path/irregular shaped nodes.Edge calculations for circular and ellipse shaped nodes.Support for mixed node types on the same canvas.Support dynamic positioning of existing Connectors relative to the node Connected on the other end.Support direct Node to Node connection creation without depending on Connector anchors already existing.I was aiming to support the following functionality: The goal of this extension was to add support for the functionality that I required in my project, without affecting the existing functionality of the control. ![]() These extensions do not change the need for an application-specific view model, and the implementation approach is the same as the original. Just like the original control, the functionality is split between extensions to the NetworkView control itself and new functionality added via the ViewModels/Views that the control is bound too. I think the changes I have made should be useful to the wider developer community as well, so I am putting this online in the hope that people find the content useful. I've spent some time getting the control to work in the way I need it to for my project. The NetworkView control looked like an excellent step up from my initial implementation however, it did not support all the functionality that I needed. When I set out on this project, I was looking for a node and join canvas for use in my personal project. This article follows on from the original work done by Ashley Davis in this excellent codeplex article. Part 2 - Sample Shapes Project Walkthrough.Part 1 - Extensions to the original control. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |