These are chat archives for AvaloniaUI/Avalonia

26th
May 2018
Wiesław Šoltés
@wieslawsoltes
May 26 2018 08:29
@jkoritzinsky I have a question and if possible feature request
Would it be possible to executed Command bound to a method if that method is extension method ?
danwalmsley
@danwalmsley
May 26 2018 11:50
@Gillibald embedded fonts is working on windows, but not on Linux somehow, did you try running it on Linux before?
Steven Kirk
@grokys
May 26 2018 12:07
@jmacato's animations PR has been merged to master! #1461
danwalmsley
@danwalmsley
May 26 2018 12:09
woohoo!
Jumar Macato
@jmacato
May 26 2018 12:10
🎉🎉🎉
Stano Turza
@Sorien
May 26 2018 12:12
it would be nice to have new beta version
Steven Kirk
@grokys
May 26 2018 12:12
yes!
i'd like to get a couple more PRs in and then we can do a new release
Jumar Macato
@jmacato
May 26 2018 12:16
i'll have to either fix or macgyver-out the progress bar and pagetransitions
before we do a release sir
and ofc, the magical Setters :)
danwalmsley
@danwalmsley
May 26 2018 12:24
@grokys this issue, is it just change a nuget version to >= or something more complicated?
Steven Kirk
@grokys
May 26 2018 12:25
which issue?
danwalmsley
@danwalmsley
May 26 2018 12:35
AvaloniaUI/Avalonia#1407
Forgot to paste
Steven Kirk
@grokys
May 26 2018 12:39
i have no idea what that issue means
danwalmsley
@danwalmsley
May 26 2018 12:40
Basically the Avalonia. IDE library doesn't like being run with an Avalonia version that is newer
There is some kind of nuget check on the version when it runs
But iv no idea where that stuff is defined
Avalonia. DesignerSupoort I mea
Steven Kirk
@grokys
May 26 2018 13:14
yeah i don't know any of that code
Benedikt Schroeder
@Gillibald
May 26 2018 13:49
@danwalmsley I have not tested it on Linux but i can imagine that Courier New isn't available so we have to chose a different default. Everything else should just work. I am not doing anything os related. Fonts are loaded either by skia or by directwrite. Maybe skia works differently under linux. Do you get any errors ?
danwalmsley
@danwalmsley
May 26 2018 14:29
I had a build run on Windows with embedded font showing fine
On Linux same binaries
It was just the courier new equivalent for. Linux
I'll try and get the debugger on it later
Benedikt Schroeder
@Gillibald
May 26 2018 15:02
Will set up a Linux environment for future development soon.
Jeremy Koritzinsky
@jkoritzinsky
May 26 2018 16:05
@wieslawsoltes extension methods are harder to support since the code would have to search through the classes to find them.
Wiesław Šoltés
@wieslawsoltes
May 26 2018 16:19
Ach ok
I had use case today
Benedikt Schroeder
@Gillibald
May 26 2018 16:27
I am working on ShutdownMode right now and will probably just call it ExitMode. Should we rename OnExiting to OnShutdown and Exit to Shutdown or is it fine to have different naming?
Benedikt Schroeder
@Gillibald
May 26 2018 16:46
Some unit tests try to show a window without an application that is failing after my initial implementation of ShutdownMode. I have "fixed" this by checking if there is an application but should we do that?
danwalmsley
@danwalmsley
May 26 2018 17:40
@cm4ker has pointed out we seem to have a lot of issues on the mac backend with popups, and windows does anyone have a mac or virtual machine that can be used to look at these issues?
@Gillibald maybe this is related to what your doing, but yesterday I found calling Application.Exit just before Main exits, causes OnExit event to be raised
avalonia doesnt seem to raise this event by itself
Benedikt Schroeder
@Gillibald
May 26 2018 17:45
If Main exits before Application.Exit is called a critical error happened. Or am i wrong?
danwalmsley
@danwalmsley
May 26 2018 17:47
I have a global try catch
But obviously if you are terminated I think there is nothing you can do about that
Benedikt Schroeder
@Gillibald
May 26 2018 17:49
Crashes arent handled by avalonia as far as i have seen. The main loop just executes forever until you cancel it and there is no error handling to catch unexpected things. So OnExit will never be called by avalonia. You cant prevent the crash but in some cases you can still log things. Atleast under WPF you can still log stuff. But this is not guaranteed.
Benedikt Schroeder
@Gillibald
May 26 2018 18:24
I have changed the way how OnExit is called in my PR. It should now always be called if possible.