These are chat archives for AvaloniaUI/Avalonia

13th
Dec 2015
danwalmsley
@danwalmsley
Dec 13 2015 08:12
Hey guys sure you probably noticed build is broken at the moment
José Manuel Nieto
@SuperJMN
Dec 13 2015 08:49
120Added package 'SharpDX.2.6.3' to folder 'C:\projects\perspex\packages'
121WARNING: Unable to find version '2.1.20150828.125449' of package 'JetBrains.dotMemoryUnit'.
122Unable to find version '2.1.20150828.125449' of package 'JetBrains.dotMemoryUnit'.
123Command exited with code 1
124Unregistering Xamarin license...
this is what AppVeyor said
danwalmsley
@danwalmsley
Dec 13 2015 08:49
@SuperJMN hey hows it going!
?
Wiesław Šoltés
@wieslawsoltes
Dec 13 2015 08:57
The NuGet is failing, this is common issue in appveyor, you have to retry few times
instead of nuget.exe
danwalmsley
@danwalmsley
Dec 13 2015 08:58
can I ask you guys an Mvvm question?
In my applications iv often struggled with the seperation of model and viewmodel
the 2 often blurring into 1
the main reason is communication between model and viewmodel is not easy to keep everything in sync
it often seems a lot easier to use the viewmodel as the model... which I dont like
has anyone else had this problem and are there any good tricks to get around it?
danwalmsley
@danwalmsley
Dec 13 2015 09:18
do you guys also make your Models emit INotifyProperty changed, etc and user observables and observablecollections, etc?
Nikita Tsukanov
@kekekeks
Dec 13 2015 10:04
Just use PerspexObject and direct properties
You'll get INotifyPropertyChanged and observable support
Darnell Williams
@Seeker1437
Dec 13 2015 16:14
@grokys thanks! And for attached properties?
Gutemberg Ribeiro
@galvesribeiro
Dec 13 2015 17:07
Hello guys
@kekekeks do you remember what would be the steps for me to add a new backend to perspex for my devices?
Steven Kirk
@grokys
Dec 13 2015 17:17
@ImaBrokeDude use RegisterAttached - need to add docs for that
danwalmsley
@danwalmsley
Dec 13 2015 18:09
@kekekeks @grokys in Rx what is the mechanism for inter view model communications?
Nikita Tsukanov
@kekekeks
Dec 13 2015 20:10
@galvesribeiro
1) you need some implementation of IWindowImpl for input handling and stuff
2) you need to build libperspesk, disable opengl initialization and replace X11 sw-drawing bridge with a call to your api
Gutemberg Ribeiro
@galvesribeiro
Dec 13 2015 20:11
ok I see
will check on that. thanks!
Nikita Tsukanov
@kekekeks
Dec 13 2015 20:13
BTW, tinywm stuff isn't merged/adapted yet, so you'll be limited to one window for a while
Gutemberg Ribeiro
@galvesribeiro
Dec 13 2015 20:13
I probably need just one and change controls