silverlight寻奇 - Graphite

2018-01-16 16:21:51 浏览数 (1)

Graphite是一个能自动布局的图表控件。

目前它已经有了silverlight 2 和 wpf的版本。观看demo时按下“Ctrl”键再做点击操作。

原文地址:http://www.orbifold.net/default/?page_id=1270

Features common to both versions

  • Styling: nodes can be styled or templated in the host application
  • Events: various events in the API allows you to react to user triggered events (node click, node added, edge removed and so on)
  • Easy API: you can easily manipulate the diagram through the API (like AddNode, DeleteEdge, ChildrenNodes and so on)
  • Interactive: the layout is also active when nodes are being dragged on the canvas
  • Documented: the API is well documented and compiled help is available
  • It is designed as a leightweight control (around 300 lines of code)

Silverlight version

Graphite for Silverlight allows you to embed interactive diagrams in any web page (HTML, PHP, ASP.Net…) and to manipulate data in a diagram without having to worry about the layout. See the inital release text or click on the thumbnails below to see a few examples (you will need the Silverlight 2 plugin):

Features specific to Silverlight:

  • based on Silverlight 2.0
  • Can be edited in Microsoft Expression Blend and Visual Studio 2008
  • Can access data through WCF and webservices
  • Can interact with JavaScript and Ajax

You can download the sample Vistual Studio project and see for yourself. Note that you’ll need Silverlight 2 and the SDK to edit things in VS2008 or Expression Blend.

WPF version

The WPF version of Graphite has the same features as the Silverlight version plus extra’s which cannot be made available in Silverlight due to security and framework restrictions, see the initial release text.

You can download this starry sky of science demo.

Features specific to the WPF version:

  • XML enabled: you can easily load XML into the control and save it back after editing the nodes and the edges
  • Rich templating and styling support
  • Better animation support
  • The full .Net 3.5 framework; none of the lightweight contraints of the Silverlight browser version and the full capacity of .Net at your disposal

0 人点赞