These are chat archives for AvaloniaUI/Avalonia

7th
Dec 2015
José Manuel Nieto
@SuperJMN
Dec 07 2015 07:51
I'm really impressed with the result, @danwalmsley
I still have to run it, but it looks sooo cool!
Friedrich von Never
@ForNeVeR
Dec 07 2015 09:53
@danwalmsley are you writing a Visual Studio replacement? :)
Darnell Williams
@Seeker1437
Dec 07 2015 11:12
hehehe :3
danwalmsley
@danwalmsley
Dec 07 2015 11:26
@ForNeVeR kind of, its targetting c/c++ for embedded systems, where there are no great cross platform ides, but no reason it cant also support .net languages later so basically yes a x plat visual studio 😁
Friedrich von Never
@ForNeVeR
Dec 07 2015 11:27
Wow!
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:16
@kekekeks The Design.DataContext is not inherited by child controls DataContexts.
DataContext.PNG
Nikita Tsukanov
@kekekeks
Dec 07 2015 19:16
Is datacontext set on root control properly?
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:16
Yes
Nikita Tsukanov
@kekekeks
Dec 07 2015 19:17
Then there is something wrong with DataContext
Because all Design.DataContext does is setting DataContext after XAML is loaded
@grokys
BTW, you can try to launch DevTools from designer
it will be a bit weird, but still
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:20

BTW, you can try to launch DevTools from designer

How ?

Does not work
Nikita Tsukanov
@kekekeks
Dec 07 2015 19:20
DevTools.Attach + F12 with some textbox focused
Oh, wait
codebehind won't be executed
Well, I probably need to work on design-time inspector support
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:23

Because all Design.DataContext does is setting DataContext after XAML is loaded

Is this fixable ?

Nikita Tsukanov
@kekekeks
Dec 07 2015 19:23
We need to look for a bug in DataContext handling
Since its value isn't inherited for some weird reason
May be that's because it's set after xaml is loaded
so there is something broken in bindings
Steven Kirk
@grokys
Dec 07 2015 19:29
i'm not aware of any problems with DataContext inheritance. do you have a minimal repro?
That's how Design.DataContext works
Steven Kirk
@grokys
Dec 07 2015 19:30
are we talking just at design time here?
Nikita Tsukanov
@kekekeks
Dec 07 2015 19:31
@wieslawsoltes what happens if you set DataContext after xaml is loaded?
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:32
It works like expected
Nikita Tsukanov
@kekekeks
Dec 07 2015 19:32
Weird
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:33
The problem is related to design time
during runtime all works as expected
this only happens only when I set explicitly DataContext in Xaml
like this <project:ProjectControl DataContext="{Binding Path=Editor.Project, Mode=TwoWay}"/>
Steven Kirk
@grokys
Dec 07 2015 19:38
so its only at design time when also setting the design-time data context?
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:38
yes
Here I set design-time DataContext
and this DataContext should inherit the Design.DataContext
Steven Kirk
@grokys
Dec 07 2015 19:40
yeah, it should. strange
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:40
this is same as WPF works
Steven Kirk
@grokys
Dec 07 2015 19:40
tbh though it's quite low priority for me, as i'd like to concentrate on runtime
i'm trying to solve some of our leaks
Wiesław Šoltés
@wieslawsoltes
Dec 07 2015 19:42
no problem, I will create issue so this can be solved later
Steven Kirk
@grokys
Dec 07 2015 19:42
thanks!
speaking of leaks, i can't seem to create a test that leaks StyleActivator...
@donandren do you have any idea what might be the cause of it? this test reports no leaks
Steven Kirk
@grokys
Dec 07 2015 19:53
it's starting to look like it might be something to do with keyboard handling somehow
Andrey Kunchev
@donandren
Dec 07 2015 21:42
This message was deleted
Don,t know actually I can think about it
Andrey Kunchev
@donandren
Dec 07 2015 21:53
but for example when clicking a toggle button or a button is not leaking memory, only when switching between tabs. And it's possible to be related in some combination of styles (Style activator or Style setters/style bindings), content transition, animation