These are chat archives for AvaloniaUI/Avalonia

25th
Jan 2015
José Manuel Nieto
@SuperJMN
Jan 25 2015 15:01
I did a cool refactor to de XAML subsystem
everything can use Dependency Injection
content properties and type converters are also retrieved using DI
José Manuel Nieto
@SuperJMN
Jan 25 2015 16:30
Capture.PNG
   <ListBox Items="{Binding Path=People}">
        <ListBox.DataTemplates>
            <DataTemplates>
                <XamlDataTemplate>
                    <StackPanel Orientation="Horizontal">  
                        <TextBlock Text="{Binding Path=Name}" />
                        <Button Content="{Binding Path=Surname}" />
                    </StackPanel>
                </XamlDataTemplate>
            </DataTemplates>
        </ListBox.DataTemplates>
    </ListBox>
This!
Steven Kirk
@grokys
Jan 25 2015 16:32
Oh wow, you got it working!
José Manuel Nieto
@SuperJMN
Jan 25 2015 16:33
well, I got it working with option 1!
(ITreeReplicator)
at least, it works!
I haven't checked the XamlDeferredReader alternative yet
Steven Kirk
@grokys
Jan 25 2015 16:35
Oh ok - nice one!
José Manuel Nieto
@SuperJMN
Jan 25 2015 16:35
it would be closer to WPF, but I still don't know how to make it work :S
I wish I could!
it's a good start, I think
next step for me is to provide some useful Type Converters, like the one for Thickness
also, Attached Properties are left out ! and they are important!
it won't replicate APs yet, only DPs
José Manuel Nieto
@SuperJMN
Jan 25 2015 16:41
the Perspex.Xaml namespace is full of classes
they are all small
Capture.PNG
most of them are absolutely portable!
Capture.PNG
the only ones that aren't portable yet are those above