I would like to modify the XYZ Gizmo in XAML, but I can’t figure out how. What would this code look like?
- Will Wright asked 12 months ago
-
Hi will, modify how? It’s possible to show or hide it, that’s about it. What do you want to achieve?
-
Hi Andrew, I had found this page https://www.scichart.com/documentation/win/current/webframe.html#SciChart.Charting3D~SciChart.Charting3D.Annotations.XyzGizmo_members.html describing the members of the XyzGizmo class. I was able to modify the colors, but I would also like to modify the text. Currently, attempting to modify the text leads to a rapidly changing string of random characters of random length. To achieve this I used codebehind, where I referenced the Viewport3D root entity children as such. if (sciChart.Viewport3D.RootEntity.Children[1] is SciChart.Charting3D.Annotations.XyzGizmo xyz) { //xyz.LabelYText = “test”; xyz.LabelZText = “Latitude”; xyz.LabelXText = “Longitude”; xyz.LabelZColor = Colors.Magenta; xyz.LabelYColor = Colors.Cyan; xyz.LabelZColor = Colors.Yellow; xyz.LabelsFontSize = 20; xyz.IsDirty = true; xyz.AxisLength = 20; } I will also post an answer with what it looks like when this code is run. I understand that the way I’m currently doing this is not at all intentional. However, if modifying the XyzGizmo is not currently offically supported, I would love for this to be a feature in the future. The default colors and “XYZ” axis labels don’t fit with my application, so if I’m not able to modify them I will just have to turn the gizmo off. Thanks for the quick reply!
-
Hi Will, Thank you for the details. I am going to discuss this with the team and will get back to you as soon as I have an update. With best regards, Lex
- You must login to post comments
Hi Will,
We’ve discussed your inquiry.
Unfortunately, these customizations are not available for SciChart 3D Gizmo currently.
It was designed for our WPF Examples suite and has limited functionality.
We are considering adding more customization options SciChart 3D Gizmo in one of the future SciChart versions and have already logged a new feature request in our tracking system.
We’ll get back to you as soon as we have an update regarding this feature request.
With best regards,
Lex
SciChart Technical Support Engineer
- Lex answered 12 months ago
- You must login to post comments
This is what I was able to achieve.
if (sciChart.Viewport3D.RootEntity.Children[1] is SciChart.Charting3D.Annotations.XyzGizmo xyz)
{
//xyz.LabelYText = "test";
xyz.LabelZText = "Latitude";
xyz.LabelXText = "Longitude";
xyz.LabelZColor = Colors.Magenta;
xyz.LabelYColor = Colors.Cyan;
xyz.LabelZColor = Colors.Yellow;
xyz.LabelsFontSize = 20;
xyz.IsDirty = true;
xyz.AxisLength = 20;
}
- Will Wright answered 12 months ago
- You must login to post comments
Please login first to submit.