These are chat archives for AvaloniaUI/Avalonia

29th
Jan 2016
Reed Copsey, Jr.
@ReedCopsey
Jan 29 2016 00:02
Question about binding - Do you know if Perspex pays attention to IReflectableType (https://msdn.microsoft.com/en-us/library/system.reflection.ireflectabletype(v=vs.110).aspx) in its binding mechanisms?
I'm wondering if things like http://www.cazzulino.com/dynamic-forms.html would work against perspex
(been trying to find some way to do the equivelent of what you can do with ICustomTypeDescriptor in WPF -but that's not available in PCL - but XF works against IRefectableType, which is in PCL)
Denis Zaporozhets
@QuantumDeveloper
Jan 29 2016 10:17
hi all
could anyone say does tunnel routed event start going always from window or only from that control, on which event raised?
Steven Kirk
@grokys
Jan 29 2016 10:35
@ReedCopsey I've never even seen IReflectableType before, so no ;)
is that similar?
@QuantumDeveloper yes, tunneled events go from the window to the control, and are followed by bubbling events that go from control to window
Denis Zaporozhets
@QuantumDeveloper
Jan 29 2016 10:38
aha, thanks. I thought that it raises event on control and lower
Steven Kirk
@grokys
Jan 29 2016 10:42
again, it's the same as WPF
Denis Zaporozhets
@QuantumDeveloper
Jan 29 2016 10:42
yeah
just not 100% realized how tunnel is working
:smile:
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:27
Hello everyone,
I am very interested in the project and the work you're doing in general
I would like that my first contribution be an enhancement to the Visual Studio extension designer, I successfully compiled and tried the current state of the extension
Nikita Tsukanov
@kekekeks
Jan 29 2016 16:31
Designer is split into two parts
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:31
It is a side project that was intended for the SharpDevelop project, the experience with them was not very encouraging, so never sent it as PR
let me send you a gif
Nikita Tsukanov
@kekekeks
Jan 29 2016 16:31
One lives in the main repo (Perspex.Designer project)
Another is the actual extension with intellisense support
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:32
I was surprised to see the designer in the main project and not the extension repository
editor-designer-component.gif
Nikita Tsukanov
@kekekeks
Jan 29 2016 16:34
The problem is that you can't do this in Perspex.Designer process
Because actual extension uses VS XML editor
not a textbox
And designer is embedded as "editor margin"
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:35
why textbox ?
That MainWindow control is never actually used except for testing purposes
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:35
@kekekeks article was removed
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:36
can't the implementation be changed to supprt the same experience as the WPF designer
Nikita Tsukanov
@kekekeks
Jan 29 2016 16:37
So, the control that is actually used by VS extension is PerspexDesigner
You need to do some magic in VS extension
I've tried that, but failed
The idea is that you need to implement whole file editor interface and somehow embed XML editor inside
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:38
that's what I was about to suggest
Nikita Tsukanov
@kekekeks
Jan 29 2016 16:38
You can try that
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 16:40
any links, help is highly welcome, I will leave for now and come back when I have some news to share, hopefully in the upcoming days.
Nikita Tsukanov
@kekekeks
Jan 29 2016 16:41
The problem is that there is almost no documentation about VS extensibility
So almost everything is done by trial and error approach
Steven Kirk
@grokys
Jan 29 2016 16:56
@abdelkarim welcome!
is the gif you sent the work you've done so far?
help would be really appreciated on the designer!
Abdelkarim Sellamna
@abdelkarim
Jan 29 2016 17:31
@grokys yes, you can say that is almost complete. a few tweaks required that I will add them later.
Johan Larsson
@JohanLarsson
Jan 29 2016 17:42
gah, I'm forced to nasty duplication due to wpf's lack of generics
maybe I should use object but that is nasty for other reasons
or T4
Ivan Kochurkin
@KvanTTT
Jan 29 2016 22:13
When next alpha will be available in NuGet?
Add this to your nuget feed