Closed Berrysoft closed 4 years ago
@SteveSandersonMS Using auto charset I could remove the multi-byte<=>wide-char string convert methods, and reduce some allocations. I think it belongs to the cleanup, which is my first working item. Please tell me if you want a separate pull request.
This is looking great! Thanks for working on this.
I’m fine with charset cleanup either being in the same PR or a different one.
@SteveSandersonMS I've added the features planned above. However, I don't have a Mac with me now. Could you help me test it? The test page has been added to testassets/MyBlazorApp
.
Also there's a remaining issue I haven't figure out the reason: if you call StateHasChanged
in the handler of SizeChanged
or LocationChanged
, the window will block. The work around is to wrap StateHasChanged
in Task.Run(...)
.
My Edge Dev updated automatically and it deprecated an API the project uses. I had to use newer API to test it.
This is looking great, @Berrysoft! If you could let me know when you consider this done and ready to merge, I'll be happy to proceed with it.
@SteveSandersonMS I consider it done now. I will keep investigating better work around for the thread problem, but I don't think it is easy to solve at once.
ping @SteveSandersonMS
Thanks, will take a look!
Thanks again @Berrysoft for this! It's looking great!
I've tried it out and encountered a few issues on macOS:
MyBlazorApp
app, the "Window size" and "Window location" values don't update when you drag the window around
NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future
(see below for full stack trace)I've added some fixes for this which I will include when merging this PR.
Merged. Thanks again @Berrysoft!
That's OK, and thank you for your help and fixes!
Working items
Maximizable & MinimizableResizableRelated issues
35
39