Comments (16)
Hello, @Happypig375!
Your request totally makes sense. Could you please raise another issue about Xamarin Forms? I'd like to support it, although I've no knowledge of Xamarin at all. I'd consider this request as up-for-grabs at the moment.
from xaml-math.
It isn't still clear what kind of support we can offer to Avalonia. Probably we could add the control like your FormulaControl
(see #23). Anyways, it seems that it depends on #18.
from xaml-math.
We can use drawing infrastructure of Avalonia that looks similar to WPF's one.
https://github.com/AvaloniaUI/Avalonia/tree/master/src/Avalonia.Visuals/Media
I will look into it later. And yes, I want to make a similar user control but for the xplat UI framework.
from xaml-math.
Would make sense to support Xamarin Forms at the same time too.
from xaml-math.
Okay, here's the current plan.
- create a branch for Avalonia stuff (and we will then proceed to work on that branch using PRs with the usual branching policy, almost as with the
master
):feature/17-avalonia
- make PR #98 non-destructive (because currently it destroys stuff, and that's unwanted) and merge it into the branch
- fix builds and add CI support for both modes (WPF and Avalonia)
- rebase work of @ahopper from #170 on top of the branch
- make sure tests work for WPF part
- make
FormulaBlock
public - solve #63 in the branch
- remove the code duplication (at least most of it) — that's why #63 was necessary
- update the documentation
- after all of that, Avalonia may land into the
master
branch - add packaging for Avalonia, but explicitly mark the packages as alpha (#192)
- check issue #128: it should'nt be reproducible for WPF and for Avalonia
- currently we're planning to only allow for solid colors in the portable code base; we'll have to think about supporting for non-solid colors (aka
Brush
es) for WPF- and Avalonia-dependent code
from xaml-math.
Hello!
* make `FormulaBlock` public
Need to do just that? Or is it supposed to further improve the API?
I ask, because, as I understand it, we need to do this in order to upgrade to version 0.9 support:
System.MethodAccessException: 'Attempt by method 'AvaloniaMath.Example.Views.MainWindow.!XamlIlPopulate(System.IServiceProvider, AvaloniaMath.Example.Views.MainWindow)' to access method 'AvaloniaMath.Controls.FormulaBlock..ctor()' failed.'
Because
Class constructors and codebehind event handlers must be public
Avalonia / Breaking Changes / 0.8 -> 0.9 / XAML
P.S. I settled on the next in the switching to 0.9:
from xaml-math.
@rstm-sf, initial plan is just make it public, but, if you have any particular improvements for API, then feel free to apply them and drop me a PR.
Regarding the Avalonia changes: I think it's okay to make the class and any constructors public.
Regarding 0.9 update: well, it looks bad. I understand that Avalonia may be pretty much unstable (especially its font-based API), and we'll have to struggle with the instability. I heard that some release of Avalonia (0.9.x? 0.10?) will receive more proper GlyphRun
API, we may/should use that.
from xaml-math.
Hi sorry for my absence from this project, my initial use which faded may be starting up again. The 0.9.x release of Avalonia is very stable, the mods to text based stuff will probably happen between 0.9 and 0.10, How can I help?
from xaml-math.
I am new to using avalonia / wpf
How can I help?
I think you can close this issue :)
Next, I will share previously unspecified actions when updating
- Breaking Changes
x:Class is now mandatory for XAML files with codebehind (windows, user controls,
App.cs
, etc)
- Here the order of the parameters is changed (or something else?)
https://github.com/ForNeVeR/wpf-math/blob/ffd65d971943fd60bc549efff893e8463893be89/src/AvaloniaMath/DefaultTexFontParser.cs#L225-L226
from xaml-math.
@ahopper, no worries, we're still working on this project.
@rstm-sf, which of that it a problem? I believe we could easily update our markup and add x:Class
, right? Aaand is it a resm
syntax that was changed, or something else?
We have our resources defined as EmbeddedResource
: https://github.com/ForNeVeR/wpf-math/blob/ffd65d971943fd60bc549efff893e8463893be89/src/AvaloniaMath/AvaloniaMath.csproj#L36-L45
I've heard of something called AvaloniaResource
, should we maybe change the way our resources are defined?
from xaml-math.
I've heard of something called
AvaloniaResource
, should we maybe change the way our resources are defined?
We can do this , thereby obtaining a slightly simplified code.
from xaml-math.
@rstm-sf, will it fix the 0.9 migration issue?
from xaml-math.
@rstm-sf, will it fix the 0.9 migration issue?
No
from xaml-math.
Maybe this thread can help us? Although I do not know how this can help
from xaml-math.
Thanks to @rstm-sf, we were able to fix the migration issue, and now AvaloniaMath is looking good, again.
The last step would be to fix the code duplication in the Avalonia branch: our current code should be generalized and decoupled from WPF (to create a common core library and two dependent ones for Avalonia and WPF). After that, we could merge the result into master, and support it as usual.
from xaml-math.
Thank you so much, everyone. We did it!
The next release will likely have full Avalonia support.
from xaml-math.
Related Issues (20)
- Selection highlighting is broken in WPF HOT 1
- The logic in HorizontalBox.Add is broken HOT 2
- Box and derived type should be immutable HOT 1
- How to use SetBackground HOT 3
- Equation with cases
- Changing font has no effect HOT 4
- Crash on typing `\left\{\matrix{}\right\}`
- Allow overriding font for letters in math mode
- Block height for `\text`
- The new update: unknown error HOT 6
- Padding and Background HOT 9
- Size for a matrix doesn't get properly determined on exporting to image HOT 1
- Vectorize the output image (feature request) HOT 2
- Support for WinUI? HOT 1
- Split Fraction HOT 1
- Commutator Diagrams HOT 1
- Align matrix equation HOT 2
- Support for lines between columns and rows in matrices
- Test failures on CI: The process cannot access the file `XamlMath.Shared.net462.tmp.cs` because it is being used by another process
- Matrix should align its items with the baseline, not the total box
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xaml-math.