I am creating custom controls and when I inherit from any annotation class (not AnnotationBase), public override void OnApplyTemplate() is called but any this.Template.FindName always returns null. If I inherit directly from ContentControl everything works correctly. I have tried inheriting from CustomAnnotation, BoxAnnotation, AnchorPointAnnotation and several others, all give the same result. I have checked the annotation classes and they all eventually inherit from ContentControl.
- Jason Neeley asked 7 years ago
- last active 7 years ago
Hello everybody,
I am trying to generate a general theme for all charts in all my applications. I first tried using the ResourceDictionary implementation as described in https://www.scichart.com/documentation/v4.x/webframe.html#Creating%20a%20Custom%20Theme.html unfortunatelly this solution does not seem to provide functionalities for changing the default Brush of VerticalLineAnnotations, which is important for my application. So I tried implementing my custom theme using a ThemeColorProvider object, but I can’t find a way to add it to the ThemeManager.
Setting setting the style of each plot manually using IThemeProvider.ApplyTheme(…) is not an option since the theme style of all charts needs to remain configurable via ThemeManager.
Can somebody give me an advice, on how to implement styling of VerticalLineAnnotations in XAML ResourceDictionary or how to add an ThemeColorProvider object to the ThemeManager.
Thanks a lot and regards,
Dirk
- Fabian Witsch asked 7 years ago
- last active 7 years ago