Search
Diagram.Content Property
See Also
 





With this property, you can define diagram elements from XAML code.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public IList Content { get; }

Visual Basic  Copy Code

Public ReadOnly Property Content As IList

 Property Value

An instance of the ContentCollection class.

 Remarks

Do not use this property directly.

 Example

The objects created by the XAML parser are added to the Content property. You can use that to define diagram items in XAML:

XAML  Copy Code

<d:Diagram Name="diagram" xmlns:d="http://mindfusion.eu/diagramming/wpf">
  <d:ShapeNode Bounds="10, 10, 20, 20" Text="A shape"></d:ShapeNode>
</d:Diagram>

 See Also