ForNeVeR / xaml-math

A collection of .NET libraries for rendering mathematical formulae using the LaTeX typesetting style, for the WPF and Avalonia XAML-based frameworks
MIT License
637 stars 100 forks source link

Applying default styles through XAML not possible #383

Closed samirem closed 1 year ago

samirem commented 1 year ago

I am trying to apply default styles to my FormulaControl's using a keyless Style-tag like the following:

<Style TargetType="{x:Type wpfMath:FormulaControl}">
    ...
</Style>

However, that does not seem to work, and I suspect that the issue has to do with DefaultStyleKey not being overridden. Cannot really figure out how it should be solved though.