Skip to content

Commit 69066b2

Browse files
authored
Update README.md
1 parent 0139017 commit 69066b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ public class ChartTrackBallBehaviorExt : ChartTrackBallBehavior
169169
}
170170
```
171171

172-
**Step 5:** In the constructor of your MainWindow class, initialize the trackballs by setting their SfChart property to the chart defined in your XAML. This ensures that the trackballs are associated with the correct chart instance and accessible in other classes. Override the **OnContentRendered** method to run an asynchronous task that calls ShowTrackball(). Implement the **ShowTrackball** method to calculate positions and display the trackballs at load time using the Display method.
172+
**Step 5:** Assign the chart instance to the **SfChart** property in the **ChartTrackBallBehaviorExt** class, and override the **OnContentRendered** method to run the asynchronous task that calls **ShowTrackball** method.
173+
174+
The **ShowTrackballMethod** method calculates the positions and displays the trackballs on the chart.
173175

174176
C#
175177

@@ -229,4 +231,4 @@ public partial class MainWindow : Window
229231
### Path too long exception
230232
If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.
231233

232-
For more details, refer to the KB on [How to add multiple trackballs in a WPF SfChart?]().
234+
For more details, refer to the KB on [How to add multiple trackballs in a WPF SfChart?]().

0 commit comments

Comments
 (0)