CSharpMath.Forms doesn't work with Xamarin Forms
yvasquezl opened this issue · 4 comments
I have integrated CSharpMath.Forms in a Xamarin Forms project and in the view it shows an empty space. It does not show the mathematical formula. Am I doing something wrong?
Code? Screenshot?
This is the code:
<Label
Text="Mis Actividades"
FontSize="Title"
FontAttributes="Bold"
Padding="30,20,30,10"
TextColor="#666666"/>
<math:MathView
BackgroundColor="red"
TextColor="White"
x:Name="View"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
\frac\sqrt23
</math:MathView>
<math:TextView
BackgroundColor="LightBlue"
TextColor="Black"
LaTeX="Text text text text text \( \frac{\sqrt a}{b} \) text text text text text"/>
and this is the result (screen): https://drive.google.com/file/d/15Su2xm5Rd990k-0Cs5fZ3kNxGsdIEEPd/view?usp=sharing
I tried with other versions and it worked for me with version 0.3.0.
I have noticed that in this version, the nugget asks to accept other terms that it does not ask for in the new versions. It is possibly the reason, it asks to accept the following:
System.Drawing.Primitives
System.Runtime.Extensions
I hope my comment will help solve the problem soon.
Try to add SkiaSharp as a nugget package to your project and see if that solves the issue