These are chat archives for AvaloniaUI/Avalonia

22nd
Aug 2016
Please, familiarize yourself with data binding concept
Avalonia wasn't designed to be used without it
Andrew
@zezba9000
Aug 22 2016 00:15
@kekekeks I know about DataBinding but didn't know Avalonia uses the same syntax as WPF.
Nikita Tsukanov
@kekekeks
Aug 22 2016 00:15
It's not the same, but very similar
Andrew
@zezba9000
Aug 22 2016 00:17
this would be the correct answer then, forgot about this: https://github.com/AvaloniaUI/Avalonia/blob/master/docs/tutorial/from-wpf.md
Nikita Tsukanov
@kekekeks
Aug 22 2016 00:21
BTW, since we don't have access to ObservableCollection in xplat environment, you can use https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Collections/AvaloniaList.cs
Which is essentially the same thing
Steven Kirk
@grokys
Aug 22 2016 06:19
@zezba9000 yeah @kekekeks is right, but you can also do ListBox.Items = new List<string>() if you want. did that not work?
danwalmsley
@danwalmsley
Aug 22 2016 07:36
@zezba9000 you should create a view model class, and follow mvvm architecture, google getting started with mvvm, there are lots of information on this, il try and post a link to a good one shortly
Darnell Williams
@Seeker1437
Aug 22 2016 12:12
@i can also share my experience with mvvm, thanks to dan I learned enough to get started :D
Darnell Williams
@Seeker1437
Aug 22 2016 13:37
Ykcthcuo
Sorry nephew xD
Darnell Williams
@Seeker1437
Aug 22 2016 19:08
What is the process for starting a new Avalonia Project from scratch in Xamarin Studio? I no longer have Visual Studio Access.
Nikita Tsukanov
@kekekeks
Aug 22 2016 19:11
Visual Studio Community is free, you know
Darnell Williams
@Seeker1437
Aug 22 2016 19:18
Oh right sorry, I don't have a Windows computer anymore.
Mac only now D:
Nikita Tsukanov
@kekekeks
Aug 22 2016 19:21
so what
I've been running on linux for half a decade
Just run VS in a VM
Darnell Williams
@Seeker1437
Aug 22 2016 19:24
This is amazing!
I bet they plan to sell it though
Nikita Tsukanov
@kekekeks
Aug 22 2016 19:25
Yeah, but you can keep running on EAP
Just update it to the next one
BTW, I think we can get a couple of free licenses for avalonia
Darnell Williams
@Seeker1437
Aug 22 2016 19:26
True that makes sense
Ivan Kochurkin
@KvanTTT
Aug 22 2016 19:29
It's seems to me that commands binding is not working for child windows :worried:
Nikita Tsukanov
@kekekeks
Aug 22 2016 20:02
I'm currently trying to figure out how GtkSocket/GtkPlug work on win32
It turns out it doesn't properly support it
And uses some magic window messages
Not sure that we can properly do embedding with gtk on windows
Nikita Tsukanov
@kekekeks
Aug 22 2016 20:21
It seems that GTK can't be embedded or embed anything else on win32 at all
Not sure about macos
Darnell Williams
@Seeker1437
Aug 22 2016 20:51
wow that's rather *** if you ask me :/
Nikita Tsukanov
@kekekeks
Aug 22 2016 21:04
Meh, I'll just go with native-toolkit-widget only
Instead of supporting cross-process embedding
One can always do something with native toolkit after getting avalonia control rendered on top of native control
And vice versa
So we'd say "not our problem"
@/all
danwalmsley
@danwalmsley
Aug 22 2016 21:55
has that failed because of intermittent failure?
@kekekeks nice
Nikita Tsukanov
@kekekeks
Aug 22 2016 21:55
got winforms embedding working
wpf on the way
It will be harder to do other way around
But we need that anyway
Our textbox sucks on mobile
danwalmsley
@danwalmsley
Aug 22 2016 21:59
on Linux it does too
selection is really hard
Nikita Tsukanov
@kekekeks
Aug 22 2016 22:02
Well, that's just some bug that can be fixed
danwalmsley
@danwalmsley
Aug 22 2016 22:03
yeah I will try to debug it
Nikita Tsukanov
@kekekeks
Aug 22 2016 22:03
Proper touch controls with native look and feel are on completely different level of complexity
danwalmsley
@danwalmsley
Aug 22 2016 22:03
@kekekeks why do people want native controls?
Ehm, you know, WebBrowser is a native control
You can't do much about that
danwalmsley
@danwalmsley
Aug 22 2016 22:28
ah true...
Nikita Tsukanov
@kekekeks
Aug 22 2016 22:28
It also will be good to have integration with eto.Forms and Xamarin.Forms
+ sometimes you need native look&feel