These are chat archives for AvaloniaUI/Avalonia

24th
Apr 2018
Jumar Macato
@jmacato
Apr 24 2018 05:39
Hi folks! I ported GridExtra (a bootstrap-like responsive grid library for WPF/UWP) to AvaloniaUI. I needed it for some of my apps that needs to have different layouts across different screens. could be useful to you or not :)
danwalmsley
@danwalmsley
Apr 24 2018 09:31
@jmacato awesome
Steven Kirk
@grokys
Apr 24 2018 11:16
excellent @jmacato! is the performance of that any better than our grid do you know? ours is really slow
Jumar Macato
@jmacato
Apr 24 2018 11:54
@grokys i haven't noticed any difference sir, since it's only subclassing our grid control
but prelim tests is quite promising but i haven't done any heavy testing on it yet
@Sorien i'll submit it next week, no one has time for it yet :)
Wiesław Šoltés
@wieslawsoltes
Apr 24 2018 16:52
Taskmgr_2018-04-24_18-52-04.png
I like this :fire: CoreRT + VS Code
@jmacato Just to test GC fix from CoreRT
dotnet/corert#5743
Wiesław Šoltés
@wieslawsoltes
Apr 24 2018 17:00
@jmacato Its fixed, no more GC hacks :smile:
noah the goodra
@jfmherokiller
Apr 24 2018 17:35
Can someone please tell me how to get Avalon
To work on Mac
Sorry for the split post phone decided to press enter
noah the goodra
@jfmherokiller
Apr 24 2018 17:46
It says it can't find a backend. However, I know I installed gtk+3 via homebrew
Jumar Macato
@jmacato
Apr 24 2018 17:58
@wieslawsoltes hey great news! :) i should probably file an issue on the linux bug
AvaloniaUI+Roslyn :fire:
danwalmsley
@danwalmsley
Apr 24 2018 19:21
@jfmherokiller are you trying to build the main repo or are you building your own application?
noah the goodra
@jfmherokiller
Apr 24 2018 19:21
building my own application
danwalmsley
@danwalmsley
Apr 24 2018 19:21
ok
are you able to share the existing code?
mainly would be useful to look at your Main method
also any stacktrace when the exception occurs
Jeremy Koritzinsky
@jkoritzinsky
Apr 24 2018 19:24
@jfmherokiller did you install the Avalonia.Desktop package?
noah the goodra
@jfmherokiller
Apr 24 2018 19:25
    public static AppBuilder BuildAvaloniaApp()
        {
            return AppBuilder.Configure<App>().UseSkia().UseMonoMac();
        }

        static void RunAlavlonUI()
        {
            BuildAvaloniaApp().Start<MainWindow>();

        }
after some messing around I got this to work kind of however now it has a sigsegv in visual studio
on mac of course
@jkoritzinsky yes i did
danwalmsley
@danwalmsley
Apr 24 2018 19:26
only when you run inside visual studio or if you run from command line?
noah the goodra
@jfmherokiller
Apr 24 2018 19:27
@danwalmsley only inside of visual studio for mac
danwalmsley
@danwalmsley
Apr 24 2018 19:27
so if you run from command line everything works normally
?
noah the goodra
@jfmherokiller
Apr 24 2018 19:27
yep
and i just figured out why
visual studio runs mono32 not 64bit mono
danwalmsley
@danwalmsley
Apr 24 2018 19:28
can it support .net core
?
noah the goodra
@jfmherokiller
Apr 24 2018 19:29
well rn I have the project setup to use .net 4.6.1
danwalmsley
@danwalmsley
Apr 24 2018 19:30
it might work better on mac on .net core
if its an option for you
change the TargetFramework to netcoreapp2.0
noah the goodra
@jfmherokiller
Apr 24 2018 19:32
ah ok
ill see if i can change that in visual studio
danwalmsley
@danwalmsley
Apr 24 2018 19:32
it might be you have to manually edit the csproj
im not familiar with vs for mac
noah the goodra
@jfmherokiller
Apr 24 2018 19:33
yep ill need to edit the csproj
but in any case atleast it works under "normal" mono execution
danwalmsley
@danwalmsley
Apr 24 2018 19:34
:)
noah the goodra
@jfmherokiller
Apr 24 2018 19:36
but i will post the stacktrace on pastebin
so that it can be studied
also it seems monomac is the culprit based upon a cursory glance
danwalmsley
@danwalmsley
Apr 24 2018 19:39
could you open an issue with how to reproduce?
noah the goodra
@jfmherokiller
Apr 24 2018 19:40
sure ill see if i can create a testcase from my codebase
to show the least amount of code needed to well break monomac
but yea for what its worth Avalonia seems the best bet for a workable cross platform C# ui. Since winforms on mac doesnt work under mono64
danwalmsley
@danwalmsley
Apr 24 2018 19:43
yes, definately, and winforms has quite an outdated looking ui now
noah the goodra
@jfmherokiller
Apr 24 2018 19:44
well im just choosing Avalonia because trying to use GTKSharp is lets just say a pain in the ass
noah the goodra
@jfmherokiller
Apr 24 2018 19:50
Also for what its worth I probably hit a corner case because im not well verse in XAML so my mainwindow.xaml file was generated from the winforms designer code
https://www.win2wpf.com/ this tool was used
danwalmsley
@danwalmsley
Apr 24 2018 19:57
id imaging that wont work too well with us, since we are not 100% compatible with wpf xaml
only mostly compatible
its kind of like wpf with improvements
and a few things not quite implemented
noah the goodra
@jfmherokiller
Apr 24 2018 19:58
well yes I had to use some creativity since "Label" elements dont exist
by default
noah the goodra
@jfmherokiller
Apr 24 2018 20:04
https://pastebin.com/WL746mA5 this is the code of the MainWindow.xaml file if interested
noah the goodra
@jfmherokiller
Apr 24 2018 20:34
@danwalmsley you may not be 100% compatable but its close enough
https://i.imgur.com/JFvgqZk.png it looks like this lol
noah the goodra
@jfmherokiller
Apr 24 2018 20:39
running under Avalonia