alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class NodeDefaults

    Specifies default styling and shape properties for data-bound nodes in an organizational chart.

    Inheritance
    object
    DiagramElement
    NodeDefaults
    Inherited Members
    DiagramElement.OnPropertyChanged(string)
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public class NodeDefaults : DiagramElement
    Remarks

    Lifetime management: Do not reuse or mutate a NodeDefaults instance after assigning it to a different SfDiagram or setting NodeDefaults to null or a new value. The diagram will automatically unsubscribe its event handlers from the old instance, but retained references will still trigger layout updates on every change.

    Constructors

    NodeDefaults()

    Initializes a new instance of the NodeDefaults class.

    Declaration
    public NodeDefaults()

    Fields

    AnnotationsProperty

    Identifies the Annotations bindable property.

    Declaration
    public static readonly BindableProperty AnnotationsProperty
    Field Value
    Type
    BindableProperty

    CollapseIconProperty

    Identifies the CollapseIcon bindable property.

    Declaration
    public static readonly BindableProperty CollapseIconProperty
    Field Value
    Type
    BindableProperty

    CornerRadiusProperty

    Identifies the CornerRadius bindable property.

    Declaration
    public static readonly BindableProperty CornerRadiusProperty
    Field Value
    Type
    BindableProperty

    ExpandIconProperty

    Identifies the ExpandIcon bindable property.

    Declaration
    public static readonly BindableProperty ExpandIconProperty
    Field Value
    Type
    BindableProperty

    FillPathProperty

    Identifies the FillPath bindable property.

    Declaration
    public static readonly BindableProperty FillPathProperty
    Field Value
    Type
    BindableProperty

    FillProperty

    Identifies the Fill bindable property.

    Declaration
    public static readonly BindableProperty FillProperty
    Field Value
    Type
    BindableProperty

    HeightProperty

    Identifies the Height bindable property.

    Declaration
    public static readonly BindableProperty HeightProperty
    Field Value
    Type
    BindableProperty

    ShapeProperty

    Identifies the Shape bindable property.

    Declaration
    public static readonly BindableProperty ShapeProperty
    Field Value
    Type
    BindableProperty

    StrokeProperty

    Identifies the Stroke bindable property.

    Declaration
    public static readonly BindableProperty StrokeProperty
    Field Value
    Type
    BindableProperty

    StrokeThicknessProperty

    Identifies the StrokeThickness bindable property.

    Declaration
    public static readonly BindableProperty StrokeThicknessProperty
    Field Value
    Type
    BindableProperty

    WidthProperty

    Identifies the Width bindable property.

    Declaration
    public static readonly BindableProperty WidthProperty
    Field Value
    Type
    BindableProperty

    Properties

    Annotations

    Gets or sets the text labels rendered on each generated node. Empty by default.

    Declaration
    public ObservableCollection<AnnotationMapping> Annotations { get; set; }
    Property Value
    Type
    ObservableCollection<AnnotationMapping>

    CollapseIcon

    Gets or sets the collapsed-state icon (click to expand) given to every generated node. Defaults to a plus icon.

    Declaration
    public ExpandIcon CollapseIcon { get; set; }
    Property Value
    Type
    ExpandIcon

    CornerRadius

    Gets or sets the generated node corner radius. Defaults to 0.

    Declaration
    public double CornerRadius { get; set; }
    Property Value
    Type
    double

    ExpandIcon

    Initializes a new instance of the NodeDefaults class.

    Declaration
    public ExpandIcon ExpandIcon { get; set; }
    Property Value
    Type
    ExpandIcon

    Fill

    Gets or sets the generated node fill color. Defaults to white.

    Declaration
    public Color Fill { get; set; }
    Property Value
    Type
    Color

    FillPath

    Gets or sets the item property holding a per-item fill color (a Microsoft.Maui.Graphics.Color or color string), overriding Fill per item. Optional.

    Declaration
    public string? FillPath { get; set; }
    Property Value
    Type
    string

    Height

    Gets or sets the generated node height. Defaults to 60.

    Declaration
    public double Height { get; set; }
    Property Value
    Type
    double

    Shape

    Gets or sets the generated node shape. Defaults to Rectangle.

    Declaration
    public NodeBasicShapes Shape { get; set; }
    Property Value
    Type
    NodeBasicShapes

    Stroke

    Gets or sets the generated node stroke color. Defaults to #6D6D6D.

    Declaration
    public Color Stroke { get; set; }
    Property Value
    Type
    Color

    StrokeThickness

    Gets or sets the generated node stroke thickness. Defaults to 1.

    Declaration
    public double StrokeThickness { get; set; }
    Property Value
    Type
    double

    Width

    Gets or sets the generated node width. Defaults to 140.

    Declaration
    public double Width { get; set; }
    Property Value
    Type
    double
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved