πR
Markdown editor without separate preview
No, thanks that was helpful. I was feeling kinda skeptical bout the project when I noticed that the handling may get quite complex. But I guess it's gonna be okay.
Regarding the separation of view and "backend": this is my very first time working with MVVM, but I've worked with MVC pattern before, so this shouldn't be new.
12 replies
ObeservableProperty onChange is called twice?
When I commented the line
BottimEditorContent=""
out, it was just called once, as it should.
If it is due to some sort of race condition, would there be a way of using semaphore/mutex/whatever?
I also might try it with keyUp6 replies
ObeservableProperty onChange is called twice?
this is so weird. lets say I hav entered
test
in the textbox. then I press enter.
Now OnBottomEditorContentChanged
gets called with oldValue="test" and newValue ="test\n"
it then calls HanldeNewLines, which sets the value to "".
So OnBottomEditorContentChanged
gets called again with oldValue="test\n" and newValue="". But as _isHandlingContentChange
is still set to false, it returns. The first call then comes to the finally block and sets _isHandlingContentChange
to false.
But now the thing I don't understand: OnBottomEditorContentChanged
gets called AGAIN with oldValue="" and newValue="test\n"
Why this last call??? is it from the UI being behind? am I missing something?6 replies
❔ Image classification AI / how to start learning AI in c#
damn chatGPT lied to me... It said it wouldn't matter if I use python or c# cause both is possible... however it's quite difficult to understand how all of this works with no explanation nowhere in the internet
29 replies