Class TreeMapUniformBrushSettings
Provides settings for assigning a single color to represent data uniformly in the SfTreeMap.
Namespace: Syncfusion.Maui.TreeMap
Assembly: Syncfusion.Maui.TreeMap.dll
Syntax
public class TreeMapUniformBrushSettings : TreeMapBrushSettings
Constructors
TreeMapUniformBrushSettings()
Declaration
public TreeMapUniformBrushSettings()
Fields
BrushProperty
Identifies the Brush dependency property.
Declaration
public static readonly BindableProperty BrushProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Brush dependency property. |
Properties
Brush
Gets or sets the background brush for the tree map leaf items in the SfTreeMap.
Declaration
public Brush Brush { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default value of Brush is Microsoft.Maui.Controls.Brush.Gray. |
Examples
The below examples shows, how to set Brush property of TreeMapUniformBrushSettings in the SfTreeMap.
<treemap:SfTreeMap x:Name="treeMap"
PrimaryValuePath="EmployeesCount"
DataSource="{Binding EmployeeDetails}">
<treemap:SfTreeMap.BindingContext>
<local:EmployeeViewModel />
</treemap:SfTreeMap.BindingContext>
<treemap:SfTreeMap.LeafItemBrushSettings>
<treemap:TreeMapUniformBrushSettings Brush="Orange">
</treemap:TreeMapUniformBrushSettings>
</treemap:SfTreeMap.LeafItemBrushSettings>
<treemap:SfTreeMap.LeafItemSettings>
<treemap:TreeMapLeafItemSettings LabelPath="JobDescription">
</treemap:TreeMapLeafItemSettings>
</treemap:SfTreeMap.LeafItemSettings>
</treemap:SfTreeMap>