You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,9 @@ public class ChartTrackBallBehaviorExt : ChartTrackBallBehavior
169
169
}
170
170
```
171
171
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.
173
175
174
176
C#
175
177
@@ -229,4 +231,4 @@ public partial class MainWindow : Window
229
231
### Path too long exception
230
232
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.
231
233
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