menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeMapItem - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeMapItem

    Represents the TreeMapItem class. To render this, create an instance of the TreeMapItem calss, and set required properties.

    Inheritance
    System.Object
    TreeMapItem
    Namespace: Syncfusion.SfTreeMap.XForms
    Assembly: Syncfusion.SfTreeMap.XForms.dll
    Syntax
    public class TreeMapItem : BindableObject

    Constructors

    TreeMapItem()

    Initializes a new instance of the TreeMapItem class.

    Declaration
    public TreeMapItem()

    Fields

    ChildItemsProperty

    Gets or sets the ChildItems property. This property is an observable collection of tree map item. This is a bindable property.

    Declaration
    public static readonly BindableProperty ChildItemsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ColorWeightProperty

    Gets or sets the ColorWeight property. This property is used to set the color value based on data item. This is a bindable property.

    Declaration
    public static readonly BindableProperty ColorWeightProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    DataProperty

    Gets or sets the Data property, and this property is used to retrieve data of the tree map item. This is a bindable property.

    Declaration
    public static readonly BindableProperty DataProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HeaderProperty

    Gets or sets the Header property, and this property is used to set the header text for tree map.

    Declaration
    public static readonly BindableProperty HeaderProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelProperty

    Gets or sets the Label property. This property is used to set the label text of the tree map. This is a bindable proeprty.

    Declaration
    public static readonly BindableProperty LabelProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    WeightProperty

    Gets or sets the Weight property. This property is used to set the weight value based on data item. This is a bindable property.

    Declaration
    public static readonly BindableProperty WeightProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    ChildItems

    Gets or sets the ChildItems property. This property is an observable collection of tree map item. This is a bindable property.

    Declaration
    public ObservableCollection<TreeMapItem> ChildItems { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<TreeMapItem>

    ColorWeight

    Gets or sets the ColorWeight property. This property is used to set the color value based on data item. This is a bindable property.

    Declaration
    public double ColorWeight { get; set; }
    Property Value
    Type
    System.Double

    Data

    Gets or sets the Data property, and this property is used to retrieve data of the tree map item. This is a bindable property.

    Declaration
    public object Data { get; set; }
    Property Value
    Type
    System.Object

    Header

    Gets or sets the header property, and this property is used to set the header text of the tree map.

    Declaration
    public string Header { get; set; }
    Property Value
    Type
    System.String

    Label

    Gets or sets the Label property. This property is used to set the label text of the tree map. This is a bindable proeprty.

    Declaration
    public string Label { get; set; }
    Property Value
    Type
    System.String

    Weight

    Gets or sets the Weight property. This property is used to set the weight value based on data item. This is a bindable property.

    Declaration
    public double Weight { get; set; }
    Property Value
    Type
    System.Double

    Methods

    OnBindingContextChanged()

    This method is used to override the binding context and set the binding context when the properties are changed.

    Declaration
    protected override void OnBindingContextChanged()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved