Skip to content

Commit 076432c

Browse files
commit
1 parent ad4e84b commit 076432c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

MAUI/SunburstChart/DrillDown.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,18 @@ this.Content = sunburst;
7575

7676
{% endtabs %}
7777

78-
## Toolbar customization
79-
80-
The appearance of the drill-down toolbar in the Sunburst Chart can be customized using the following properties
78+
## Toolbar Positioning
8179

82-
* `IconBrush`: Gets or sets the brush used to style the icons within the drill-down toolbar.
83-
* `Background`: Gets or sets the background brush of the drill-down toolbar.
80+
The toolbar's position within the Sunburst Chart can be adjusted both horizontally and vertically using the `OffsetX` and `OffsetY` properties of the `SunburstToolbarSettings` class.
8481

8582
{% tabs %}
8683

8784
{% highlight xml %}
8885

8986
<sunburst:SfSunburstChart EnableDrillDown="True">
9087
. . .
91-
<chart:SfSunburstChart.ToolbarSettings>
92-
<chart:SunburstDrillDownToolbarSettings IconBrush="White" Background="#2989F9"/>
88+
<chart:SfSunburstChart.ToolbarSettings >
89+
<chart:SunburstDrillDownToolbarSettings OffsetY="100" OffsetX="50"/>
9390
</chart:SfSunburstChart.ToolbarSettings>
9491
</sunburst:SfSunburstChart>
9592

@@ -102,8 +99,8 @@ sunburst.EnableDrillDown = true;
10299
. . .
103100
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings()
104101
{
105-
IconBrush = Colors.White,
106-
ackground = new SolidColorBrush(Color.FromArgb("#2989F9")),
102+
OffsetX = 100,
103+
OffsetY = 50,
107104
};
108105
sunburst.ToolbarSettings = toolbarSettings;
109106
this.Content = sunburst;
@@ -112,18 +109,21 @@ this.Content = sunburst;
112109

113110
{% endtabs %}
114111

115-
## Toolbar Positioning
112+
## Toolbar customization
116113

117-
The toolbar's position within the Sunburst Chart can be adjusted both horizontally and vertically using the `OffsetX` and `OffsetY` properties of the `SunburstToolbarSettings` class.
114+
The appearance of the drill-down toolbar in the Sunburst Chart can be customized using the following properties
115+
116+
* `IconBrush`: Gets or sets the brush used to style the icons within the drill-down toolbar.
117+
* `Background`: Gets or sets the background brush of the drill-down toolbar.
118118

119119
{% tabs %}
120120

121121
{% highlight xml %}
122122

123123
<sunburst:SfSunburstChart EnableDrillDown="True">
124124
. . .
125-
<chart:SfSunburstChart.ToolbarSettings >
126-
<chart:SunburstDrillDownToolbarSettings OffsetY="100" OffsetX="50"/>
125+
<chart:SfSunburstChart.ToolbarSettings>
126+
<chart:SunburstDrillDownToolbarSettings IconBrush="White" Background="#2989F9"/>
127127
</chart:SfSunburstChart.ToolbarSettings>
128128
</sunburst:SfSunburstChart>
129129

@@ -136,8 +136,8 @@ sunburst.EnableDrillDown = true;
136136
. . .
137137
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings()
138138
{
139-
OffsetX = 100,
140-
OffsetY = 50,
139+
IconBrush = Colors.White,
140+
ackground = new SolidColorBrush(Color.FromArgb("#2989F9")),
141141
};
142142
sunburst.ToolbarSettings = toolbarSettings;
143143
this.Content = sunburst;

0 commit comments

Comments
 (0)