DiagramLite Programmer's Guide
Diagram.ShapeNodeStyle Property
See Also
 





Gets or sets the theme-level style for shape nodes. This is a dependency property.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public Style ShapeNodeStyle { get; set; }

Visual Basic  Copy Code

Public Property ShapeNodeStyle As Style

 Property Value

A System.Windows.Style instance.

 Remarks

This property provides a shortcut for associating a style with the ShapeNode type in the current theme.

 Example

Xaml  Copy Code

<diag:Diagram Name="diagram"
    DefaultShape="Rectangle">
    <diag:Diagram.ShapeNodeStyle>
        <Style TargetType="diag:ShapeNode">
            <Setter Property="Brush" Value="LightBlue" />
        </Style>
    </diag:Diagram.ShapeNodeStyle>
</diag:Diagram>

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
Styles and Themes