ElementFlow DataTemplates

Dec 13, 2008 at 8:42 PM
Thanks for the ElementFlow it works great.  I am using the ElementFlow with a Items control that is using a DataTemplate that adds a button on each item.  I was wondering is it possible to use a Trigger in the DataTemplate to only have the button enabled when it is the current selected item.  Basically the butons on the elements to the right and left would be disabled.  Or any other ideas on how to do this thanks.  Thanks for any help.
Jan 6, 2009 at 7:27 PM
Hi, have you found an answer to your question?
because i'm in the same situation and i cant get it to work
basically i know what SHOULD work but it doesnt ...

in the datatemplate we have to add a trigger like this

            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor,
                             AncestorType={x:Type ListBoxItem}},
                             Path=IsSelected}"
                             Value="True">
                    <Setter Property="Visibility" Value="Visible" TargetName="NomSerieLabel" />
                </DataTrigger>

But the ListBoxItem seems to never gets selected ...
so maybe the even is not handled.. i have no idea

any help is apreciated