These are chat archives for AvaloniaUI/Avalonia

16th
Apr 2018
Jeremy Koritzinsky
@jkoritzinsky
Apr 16 2018 01:13
Avalonia only deals with the UI, so features like battery information, network connectivity, and compass, etc. are not something that Avalonia covers. You can use the Xamarin classes or plugins (these don’t require XF). Same for System.IO and local storage. I don’t believe we currently have gesture support but it is on our roadmap.
Nikita Tsukanov
@kekekeks
Apr 16 2018 04:49
@weitzhandler You should understand that WASM support in Mono is currently in alpha stage. It uses MSIL interpreter instead of actually compiling code to WASM, it's VERY inefficient in terms of DOM interaction, you can only use JS eval function for interaction with the outside world, etc
"Xamarin.Forms in webassembly" is also a proof-of-concept, there is nothing production-ready there
There is an Ooui web framework that has originally kept it's DOM state on the server and was using websocket for sending events and getting DOM updates back
Now instead of a dedicated server and a websocket it uses a "local" server running inside WASM
There is an experimental backend for Xamarin.Forms that uses said "server DOM" for rendering
It should be possible to run Avalonia in WASM, however, but it will require patches to Mono and roughly a week of full-time work to get things going
Nikita Tsukanov
@kekekeks
Apr 16 2018 04:54
I'll try to push the required patches to Mono upstream before they release an actual SDK
Steven Kirk
@grokys
Apr 16 2018 06:14
@weitzhandler be aware that Avalonia is 100% volunteers and in Beta at the moment so your developer(s) will most likely need to spend time adding features and fixing bugs in Avalonia as well as in your app itself!
Achal Shah
@achal7
Apr 16 2018 09:53
@grokys have managed to get time to work on #1448
managed to imporve the solution, no more alginment issue anymore
but still seeing flickering in case of text selection, if i move pointer fast
By the way here is the Before case
text box alignment issue.gif
and here is the current case, after fix. but still flicker when user moves mouse fast
after.gif
atleast it fixes the blank text box issue and alignment issue
Benedikt Stebner
@Gillibald
Apr 16 2018 12:05
Looks like the selection isnt updating fast enough
Achal Shah
@achal7
Apr 16 2018 14:39
YES
sorry for caps
i also sees that the TextPresenter has caret time interval of 500 ms
I sees that the Pointer move event is much faster then that. If i make observalble collection with Throttle of 500/600 ms to generate PointerEventArgs then i dont see flickering of selection box
@grokys Do you see it good idea to align the pointer move event of text box to align/in sync with CaretTimeInterval?
Achal Shah
@achal7
Apr 16 2018 14:55
Code snippet looks like:
this.GetObservable(TextBox.PointerMovedEvent)
.Throttle(new TimeSpan(500), Avalonia.Threading.AvaloniaScheduler.Instance)
.Subscribe(e => this.HandleMouseMove(e));
So no more override OnPointerMoved(PointerEventArgs e) inside text box control
Over here 500 can be used as static of TextRepresentor.CaretUpdateFrequency, so we can use it over there as well as inside text box.
Achal Shah
@achal7
Apr 16 2018 15:00
The issue is now to reduce the flickering when user moves mouse, other things regarding text box are resolved
Achal Shah
@achal7
Apr 16 2018 21:26
Finally, found the problem regarding flickering.
@grokys fixed issue 1448 regarding text box alignment and flickering
take a look at the issue, details are mentioned in PR of #1448
Steven Kirk
@grokys
Apr 16 2018 21:57
awesome thanks @achal7 ! will take a look soon!
oh i can't see a PR, #1448 is an issue
Steven Kirk
@grokys
Apr 16 2018 22:07
did you forget to open a PR?
danwalmsley
@danwalmsley
Apr 16 2018 22:29
@Gillibald just added a comment to your PR regarding the unit test.
Steven Kirk
@grokys
Apr 16 2018 23:13
thanks for helping out with the reviews @danwalmsley - i'm struggling to keep up
danwalmsley
@danwalmsley
Apr 16 2018 23:25
I know it's got a bit crazy lately. Can only be a good thing
I'll keep doing what I can 😁
Steven Kirk
@grokys
Apr 16 2018 23:27
yeah definitely a good thing, just wish i had a bit more time!