Here’s the English translation of your message:
I cannot change the Background Color of the LegendModifier3D that I’m using.
The methods I’ve tried so far are:
1.
csharp
Legend = new CustomLegendModifier3D
{
Background = new SolidColorBrush(Colors.Red)
}
2.
csharp
ControlTemplate template = new ControlTemplate(typeof(LegendModifier3D));
template.VisualTree = new FrameworkElementFactory(typeof(System.Windows.Controls.Grid));
template.VisualTree.SetValue(Border.BackgroundProperty, new SolidColorBrush(Colors.Red));
Legend.Template = template;
I’ve tried these methods, but while the background color of each TextBlock has changed, I’ve found that the background color of the container wrapping the TextBlocks doesn’t change no matter what method I use.
I’m inquiring whether it’s impossible to completely change the background color of the LegendModifier3D container when using LegendModifier3D, or if I’m using the wrong method.
- MIN JAE KIM asked 2 months ago
- last edited 2 months ago
-
Hi Min Jae Kim, Thanks for your inquiry. I’m going to discuss this with our team and will get back to you as soon as I have an update. Kind regards, Lex, SciChart Technical Support Engineer
- You must login to post comments
Hi Min Jae Kim,
Hope you are doing well.
I’m glad to inform you that we have added the appropriate bindings to the default LegendModifier3D style. The changes are already available in the recently released SciChart v8.6.0.28199 update.
The release is available in the official NuGet feed. Here you can find more details:
SciChart WPF Changelog – SciChart
Please try it out and let us know your feedback.
Kind regards,
Lex,
SciChart Technical Support Engineer
- Lex answered 1 month ago
- You must login to post comments
Hi Min Jae Kim,
Thank you for reporting this.
We have logged a task in our tracking system to add bindings to the default style for the Legend 3D.
The changes are planned to be delivered with the next SciChart release scheduled for the nearest weeks.
Once this is added your approach will work.
We’ll get you informed as soon as the update will be available.
Kind regards,
Lex
- Lex answered 2 months ago
- You must login to post comments
Please login first to submit.