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
Describe the bug
Defining a theme style for the draw margin using HasRuleForDrawMargin has no effect.
To Reproduce
Steps to reproduce the behavior:
Register and use a theme that makes use of the HasRuleForDrawMargin method
See that charts do not apply the rules to the draw margin from the theme
Expected behavior
The theme should be applied to the DrawMargin
Screenshots
N/A
Desktop (please complete the following information):
OS: Windows
Browser: N/A
Version: 2.0.0-beta.710
Additional context
Other aspects of the theme I have defined are being applied correctly (series, axis, etc), it is just the DrawMargin properties that appear to be ignored.
The text was updated successfully, but these errors were encountered:
The referenced commit partially fixes this. this will apply themes to existing draw margins, but it cannot create new ones... the problem is actually a little bit bigger; we cannot set any chart property at theme level for now.
You could actually set a draw margin using themes, but you must use WPF themes, the LiveCharts API only sets themes for the drawn objects, this is nice because the same code works for all the supported frameworks.
Maybe we need an API to apply themes to the framework elements of each supported platform? 🤔
beto-rodriguez
changed the title
DrawMargin style is not applied
Apply themes to chart properties
Jun 9, 2023
Describe the bug
Defining a theme style for the draw margin using
HasRuleForDrawMargin
has no effect.To Reproduce
Steps to reproduce the behavior:
HasRuleForDrawMargin
methodExpected behavior
The theme should be applied to the
DrawMargin
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Other aspects of the theme I have defined are being applied correctly (series, axis, etc), it is just the DrawMargin properties that appear to be ignored.
The text was updated successfully, but these errors were encountered: