These source code samples demonstrate how to customize the visual representation of yFiles WPF graph elements.

Available samples

The following programming samples are available in this category:

Name Description
Demo.yFiles.Graph.ControlStyles Sample application that demonstrates the usage of NodeControlNodeStyle, PortControlPortStyle, LabelControlLabelStyle, and EdgeSegmentControlEdgeStyle.
Demo.yFiles.Graph.SelectionStyling Demonstrates customized selecting painting of nodes, edges and labels by decorating these items with a corresponding style.
Demo.yFiles.Graph.SimpleCustomStyle This demo shows how to create relatively simple custom styles.
Demo.yFiles.Graph.StyleDecorators This demo shows how to decorate existing styles by wrapping them.
Demo.yFiles.Graph.TableNodeStyle This demo shows how to implement different styles for IStripe instances inside an ITable instance.
Demo.yFiles.Graph.UMLClassStyle This demo shows a custom UML diagram style for nodes.
Demo.yFiles.Graph.VisualStateManager Sample application that demonstrates the usage of NodeControlNodeStyle, PortControlPortStyle, LabelControlLabelStyle, and EdgeSegmentControlEdgeStyle using .net 4.0's Visual State Manager.

Running the Demos

  • If you have done a default installation of yFiles WPF, then you can just open the Visual Studio solution shortcuts for the programming samples that have been installed on your Desktop or in your Start Menu.