Pre loader

can not change the Background Color of the LegendModifier3D

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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.

Version
SciChart WPF v8.5.0.28148 (20 May 2024)
Images
  • Lex
    • Lex
    • 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 to post comments
0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.