These are chat archives for AvaloniaUI/Avalonia

18th
Jan 2016
Steven Kirk
@grokys
Jan 18 2016 12:03
@wieslawsoltes do you remember the problem you had with your behaviors where a binding couldn't be set somewhere?
did you file an issue for that? i can't find it
Alexey
@flcl42
Jan 18 2016 12:42
This message was deleted
danwalmsley
@danwalmsley
Jan 18 2016 14:43
@grokys just trying to bind the TreeViewItem IsExpandedProperty of my TreeViewItems...
not sure how I can apply this with a style in perspex?
Steven Kirk
@grokys
Jan 18 2016 14:48
haha
wow
that's literally what i'm working on
danwalmsley
@danwalmsley
Jan 18 2016 14:48
haha wow what a coincidence
ok il hang on a second
Steven Kirk
@grokys
Jan 18 2016 14:49
i'm hoping to finish it this evening
good to see you're still working on avalonstudio despite becoming a dad last week!
danwalmsley
@danwalmsley
Jan 18 2016 14:50
they are both asleep for first time, so just getting a couple of hours in
first time iv had any time
Steven Kirk
@grokys
Jan 18 2016 14:53
yeah, i can imagine!
Wiesław Šoltés
@wieslawsoltes
Jan 18 2016 15:53

@wieslawsoltes do you remember the problem you had with your behaviors where a binding couldn't be set somewhere?

@grokys Well I think this was the xaml :

<Button Name="button" Content="Change Property" Grid.Row="1">
    <i:Interaction.Behaviors>
        <ia:EventTriggerBehavior EventName="Click" SourceObject="{Binding ElementName=button}">
            <ia:ChangePropertyAction TargetObject="{Binding ElementName=textBox}" PropertyName="Text" Value="World"/>
        </ia:EventTriggerBehavior>
    </i:Interaction.Behaviors>
</Button>
I think the {Binding ElementName=textBox} did not work
Can't reproduce now, because I have to use newest OmniXaml for this and its not merged in Perspex yet
Steven Kirk
@grokys
Jan 18 2016 15:54
hmm, i think that was Perspex/Perspex#365
which i fixed
there was another problem with binding to a non-PerspexObject i seem to remember
Wiesław Šoltés
@wieslawsoltes
Jan 18 2016 15:55
this was yet another issue
when I was using PerspexObject as base class I had to switch to Control as base class
Steven Kirk
@grokys
Jan 18 2016 15:56
do you remember what the xaml was?
Wiesław Šoltés
@wieslawsoltes
Jan 18 2016 15:56
the #365 issue was fixed and works, but I got different issue with binding
I think this was my above xaml, but this nested xaml
<ia:ChangePropertyAction TargetObject="{Binding ElementName=textBox}" PropertyName="Text" Value="World"/>
I think that binding to textBox did not work
Let me setup the Perspex with latest OmniXaml and will try to reproduce the issue
oh not sure if latest OmniXAML will work
Steven Kirk
@grokys
Jan 18 2016 16:21
yeah, loads has changed in omnixaml and i didn't manage to get it integrated into perspex
@SuperJMN says there are some more changes coming soon though that will make it easier
Wiesław Šoltés
@wieslawsoltes
Jan 18 2016 16:40
@grokys I think this must wait until latest OmniXaml will be integrated into Perspex, than I will continue my test and report them here.
Steven Kirk
@grokys
Jan 18 2016 16:46
ok!
Denis Zaporozhets
@QuantumDeveloper
Jan 18 2016 18:20
hi
can you please describe in few words how and in which places do you add visual parent and children? Maybe some code in your project to see that exact place
Steven Kirk
@grokys
Jan 18 2016 19:18
the visual stuff kekekeks pointed to is private
to add a visual child just call VisualChildren.Add(child)
similarly to add a logical child LogicalChildren.Add(child)
Denis Zaporozhets
@QuantumDeveloper
Jan 18 2016 19:20
@kekekeks thanks. I have already found that :)
Ivan Kochurkin
@KvanTTT
Jan 18 2016 21:32
Line does not supported as Shape? Ellipse, Path, Rectangle only available?
Steven Kirk
@grokys
Jan 18 2016 22:26
@KvanTTT not yet implemented
should be simple should you wish to submit a PR ;)
otherwise please add an issue
Ivan Kochurkin
@KvanTTT
Jan 18 2016 22:27
Ok, I'll try :)