Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSharpMath.Forms doesn't work with Xamarin Forms #209

Open
yvasquezl opened this issue May 30, 2022 · 4 comments
Open

CSharpMath.Forms doesn't work with Xamarin Forms #209

yvasquezl opened this issue May 30, 2022 · 4 comments
Labels
Status/½. Needs a reproduction A reproduction method needs to be provided for this bug to continue. Status/½. Needs more information Information needs to be provided for this issue to continue. Type/Bug

Comments

@yvasquezl
Copy link

yvasquezl commented May 30, 2022

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?

@Happypig375
Copy link
Collaborator

Code? Screenshot?

@Happypig375 Happypig375 added Status/½. Needs a reproduction A reproduction method needs to be provided for this bug to continue. Status/½. Needs more information Information needs to be provided for this issue to continue. Type/Bug labels May 30, 2022
@yvasquezl
Copy link
Author

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

@yvasquezl
Copy link
Author

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.

@ViDanMaster
Copy link

Try to add SkiaSharp as a nugget package to your project and see if that solves the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status/½. Needs a reproduction A reproduction method needs to be provided for this bug to continue. Status/½. Needs more information Information needs to be provided for this issue to continue. Type/Bug
Projects
None yet
Development

No branches or pull requests

3 participants