Diagramming for Silverlight v3.0.1:
Zoom control
The ZoomControl class lets users change interactively the current zoom level and scroll position of a Diagram. To set it up, add a ZoomControl to the page, place it anywhere over the target diagram, and set the control's Target property to that diagram. Set the ZoomStep and ScrollStep properties to specify the amount added to view's zoom level or scroll position by ZoomControl's buttons. You can customize the control's appearance by setting properties such as Fill, Stroke, CornerRadius and TickPosition.
Miscellaneous
~ Enable the AllowRenamePages property of TabbedDiagramView to let users rename a DiagramPage interactively by clicking its tab.
~ Several new stock shapes added: RightTriangle, Decagon, Trapezoid, Star4Pointed, Star5Pointed, Star6Pointed, Star7Pointed, Star16Pointed, Star24Pointed, Star32Pointed, Donut, Plaque.
~ New RoundAndSquare and RoundAndSquare2 handle styles can be set as the HandlesStyle of nodes.
~ The projection of a node on the scales of Ruler control now shows the boundaries of the rotated node shape. To ignore rotation as in older versions, set ProjectRotatedBounds to false.
~ The ScrollZoneSize property specifies the size of the region near viewport borders that triggers auto-scrolling.
~ Set the HandlesStyle property of nodes to Custom to implement custom appearance and hit-testing for adjustment handles. The control raises DrawAdjustmentHandles and HitTestAdjustmentHandles events for such nodes.
~ The SetSelfLoopShape event is raised when a link becomes a self-loop, giving you a chance to set a custom shape for the link.
Diagramming for Silverlight v3.0.1 更新內(nèi)容如下:
縮放控制
- ZoomControl(縮放控制)類(lèi)讓用戶(hù)交互式改變Diagram當(dāng)前縮放比例和滾動(dòng)位置。添加一個(gè)ZoomControl到頁(yè)面,把它放在目標(biāo)圖表上的任意位置,設(shè)置控制的目標(biāo)屬性到該圖表。設(shè)置ZoomStep和ScrollStep屬性來(lái)指定添加到視圖縮放比例或滾動(dòng)位置(諸如Fill、CornerRadius 和 TickPosition等等的屬性)。
其它:
- 啟用TabbedDiagramView 的 AllowRenamePages屬性讓用戶(hù)通過(guò)點(diǎn)擊tab 來(lái)對(duì) DiagramPage 進(jìn)行交互式重命名。
- 添加幾個(gè)新的形狀:直角三角形、十邊形、梯形、環(huán)形等等。
- 新的 RoundAndSquare 和 RoundAndSquare2 處理樣式可以被設(shè)置為HandlesStyle節(jié)點(diǎn)。
- ScrollZoneSize(滾動(dòng)區(qū)域大小)屬性指定了視口邊界附近觸發(fā)自動(dòng)滾動(dòng)的區(qū)域。
- 設(shè)置節(jié)點(diǎn)的HandlesStyle(處理樣式)屬性為Custom(自定義),來(lái)執(zhí)行自定義外觀。控制為這些節(jié)點(diǎn)引發(fā)DrawAdjustmentHandles 和 HitTestAdjustmentHandles 事件。
- 當(dāng)一個(gè)鏈接編程一個(gè)自循環(huán),引發(fā) SetSelfLoopShape 事件,由此你有機(jī)會(huì)為鏈接設(shè)置自定義形狀。