Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramming for WPF, V2.4 (Read 1961 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 721
Joined: Apr 6th, 2003
Diagramming for WPF, V2.4
Jul 7th, 2010 at 12:27pm
Print Post  
We have released version 2.4 of WpfDiagram. It adds the following new features:

TemplatedNode class
The appearance of TemplatedNodes can be customized using their Template property or the Diagram.NodeTemplate property as shown below.

Code
Select All
<diag:Diagram>
	<diag:Diagram.NodeTemplate>
		<DataTemplate DataType="diag:TemplatedNode">
			<Border
				BorderBrush="{Binding Stroke}"
				BorderThickness="{Binding StrokeThickness}"
				Background="{Binding Brush}">

			<TextBlock
				Text="{Binding Text}"
				TextWrapping="{Binding TextWrapping}"
				TextTrimming="{Binding TextTrimming}"
				FontFamily="{Binding FontFamily}"
				FontSize="{Binding FontSize}"
				TextAlignment="{Binding TextAlignment}"
				VerticalAlignment="Center"
				HorizontalAlignment="Stretch"/>

			</Border>
		</DataTemplate>
	</diag:Diagram.NodeTemplate>
</diag:Diagram> 



TemplatedNode is also useful as a base of custom node classes whose appearance is set via Xaml rather than overriding OnRender.

WmfExporter component
The WmfExporter class creates a Windows Metafile (WMF) drawing from the content of a Diagram. The exporter enumerates all graphics primitives contained in the WPF visual tree and creates corresponding WMF records. This enables custom graphics and hosted controls to be rendered in WMF too.

Registered customers with an active upgrade subscription can download the licensed version from the clients area on our site.
    
A trial version is available for download here: 
https://mindfusion.eu/WpfDiagTrial.zip
    
Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint