These are chat archives for AvaloniaUI/Avalonia

13th
Jan 2015
José Manuel Nieto
@SuperJMN
Jan 13 2015 09:13
Woohoo, tests are working, XAML is progressing.
Bindings update just right
José Manuel Nieto
@SuperJMN
Jan 13 2015 09:28
My mind is wandering around DataTemplates now...
Steven Kirk
@grokys
Jan 13 2015 20:44
hey josé nice work. sorry, but i've not had any time to work on perspex over the last week and looks like it will be that way for at least another week
lots of work to catch up on and need to finish a video for my band!
José Manuel Nieto
@SuperJMN
Jan 13 2015 21:03
for your band!?
do you have a band?! if so, tell us more about it! if you have any video or recording, share it!
(BTW, DataTemplates in XAML need a way to clone controls!)
(I'm dealing with that right now)
Steven Kirk
@grokys
Jan 13 2015 21:41
i don't think in WPF they clone controls
i think they delay the creation of the tree until the datatemplate is "executed"
this is why i've been a bit slow with perspex recently!
Steven Kirk
@grokys
Jan 13 2015 21:47
ah - for datatemplates - i've found the code in avalonia that handles it
you need to use XamlDeferringLoader
i believe - my memory of all that is rather hazy
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:10
oh my ...!
that sounds nasty!
I hope to avoid introducing another dependeny from System.Xaml :D
by the way, I've got something working about DataTemplates!
Steven Kirk
@grokys
Jan 13 2015 22:12
how are you doing it if you're not using XamlDeferringLoader?
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:12
not using it, at the moment!
<ListBox Items="{Binding Path=People}">
<ListBox.DataTemplates>
<DataTemplates>
<XamlDataTemplate>
<XamlDataTemplate.Content>
<Button />
</XamlDataTemplate.Content>
</XamlDataTemplate>
</DataTemplates>
</ListBox.DataTemplates>
</ListBox>
it's a start
Steven Kirk
@grokys
Jan 13 2015 22:13
yeah - you should look at XamlDeferringLoader - it's not strictly another dependency as it's all part of the XAML library
but if you've got it working without, then good!
all i know is that's the way that WPF does it
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:16
Untitled.png
look under the "Press me" Button
it's a ListBox
everything works with bindings
Steven Kirk
@grokys
Jan 13 2015 22:17
nice!
how are you doing the datatemplate? just cloning the tree somehow?
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:17
People = new List<Person> { new Person() { Name = "Johnny"}, new Person { Name = "Billy" }, new Person { Name = "Tommy" } };
not yet! But I will have to "clone"
it will take a lot of work, for sure
Steven Kirk
@grokys
Jan 13 2015 22:18
yeah, that's where XamlDeferringLoader comes in
i think that will make things easier for you
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:18
I'm already using dependency injection
haha, I will take a look
but I think this is not so difficult, but tedious!
Steven Kirk
@grokys
Jan 13 2015 22:19
i think avalonia could help you here as loading datatemplates from xaml already works there
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:19
cool!
Steven Kirk
@grokys
Jan 13 2015 22:19
if i remember correctly, it wasn't a lot of work
might be worth stepping through the demo app there
bceause i can't remember how it works ;)
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:20
haha
so complex...!
wish me luck :D
Steven Kirk
@grokys
Jan 13 2015 22:20
i don't think it is, but maybe i just don't remember
good luck!
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:21
maybe it's not very complex, but the Avalonia as a whole is!
Steven Kirk
@grokys
Jan 13 2015 22:21
i seem to remember that the xaml library does 90% of the work
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:21
I remember shitting on my pants
Steven Kirk
@grokys
Jan 13 2015 22:21
haha
lets hope they don't open source wpf then - you would die looking at the code i imagine ;)
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:22
by the way, what about your videos (the band) do you have any already posted?
I'm about to go to your link :)
Steven Kirk
@grokys
Jan 13 2015 22:22
our video isn't finished yet
i'm working on it now
but the album is finished and on spotify/itunes etc
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:23
I'll check it on Spotify!
Steven Kirk
@grokys
Jan 13 2015 22:23
also available on CD and vinyl if you want to buy it ;)
it might not be your sort of music though!
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:24
haha, is that serves as donation for Perspex...!
Steven Kirk
@grokys
Jan 13 2015 22:24
haha, i don't think we will see any money from it!
it's been getting good reviews though - we had a review in the Sunday Times!
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:25
I don't care :D as long as I keep my paid job...
:laughing:
Steven Kirk
@grokys
Jan 13 2015 22:30
from the music i mean! it's hard to make money from music!
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:30
Man, where do you get the time from?! you're sooo multidisciplinary!
Steven Kirk
@grokys
Jan 13 2015 22:30
ha well most of it was finished about 4 or 5 years ago
i've been making the video for 3 years!!
piano piano as they say in italy
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:32
haha, nice!
by the way, do you have a LinkedIn profile?
Steven Kirk
@grokys
Jan 13 2015 22:33
no, i've never used it
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:33
OK ! check my projects ;D
Steven Kirk
@grokys
Jan 13 2015 22:34
:)
José Manuel Nieto
@SuperJMN
Jan 13 2015 22:37
Perspex! I'm proud of it