WindowsPhone: RelativeSource Mode = FindAncestor, AncestorType: CannotResolve SymbolAncestorType

Templating listbox. Lubię pokazywać ścieżkę tylko wtedy, gdy element jest zaznaczony.

DataTemplate:

<DataTemplate x:Key="itplPlayerOfTheDay">
    <Grid>
        ...
        <Grid Width="50" Height="50" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,5,0">
            <Path Visibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor , AncestorType={ListBoxItem}}, Path=IsSelected, Converter={StaticResource BooleanToVisibilityConverter}}"  Data="M32.5569,7.54591 C32.3883,13.1553 31.3485,16.9274z" Stretch="Uniform" Stroke="Black" >
            </Path>
        </Grid>
        ...
    </Grid>
</DataTemplate>

Apparantly coś jest nie tak z moim XAML. W projektancie jest napisane: Nie można rozwiązać symbolu typu przodka.

questionAnswers(1)

yourAnswerToTheQuestion