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

Awesome project but a question #8

Open
NeomMob opened this issue Feb 2, 2022 · 1 comment
Open

Awesome project but a question #8

NeomMob opened this issue Feb 2, 2022 · 1 comment
Labels
discussion Discussion

Comments

@NeomMob
Copy link

NeomMob commented Feb 2, 2022

Awesome control. It fills the gap for a modern WinUI code editor.
Why did you choose to do your own instead of porting https://github.com/icsharpcode/AvalonEdit which has a good foundation for text editing?

@WelterDevelopment
Copy link
Owner

Thanks, but at the current state, I wouldn't call it awesome, mainly because of the catastrophic state of the code structure and the missing (working) text wrapping feature...

I am well aware of AvalonEdit but the problem is that:

  • I am a total noob and programming is only a hobby for me
  • I got quite overwhelmed by the amount of WPF API usage (specifically IScrollInfo and IWeakEventListener)
  • After hours of digging I didn't understand where the text is actually printed on the screen, which I found just now, it seems to be this line
  • The text rendering and editing logic are saparated and deeply nested within a never ending amount of .cs files, which again was quite overwhelming to start with

I really tried but got very frustrated so I stopped trying to port other WPF based solutions and tried it on my own with WinUI and Win2D. Right now it's a just-for-fun project, the code of which might be streamlined to adopt the rendereing and editing logic of AvalonEdit in the future (once I finally understand how AvalonEdit works...). This process is of course very inefficient and I am silently hoping that somebody will do an actual port of AvalonEdit in the future :)

@WelterDevelopment WelterDevelopment added the discussion Discussion label Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion
Projects
None yet
Development

No branches or pull requests

2 participants