This is a migrated thread and some comments may be shown as answers.

Selected item

1 Answer 23 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alain
Top achievements
Rank 1
Alain asked on 30 Aug 2013, 03:12 PM

Since RadSlideView does not implement SelectedIndex, I'd like to know how I could actually retrieve the currently SelectedItem from the TextBlock which contains my the ID for the selected item.

<telerikPrimitives:RadSlideView Grid.Row="0"
                                            x:Name="slideView"
                                            ItemsSource="{Binding AllSource}"
                                            AdjacentItemsPreviewMode="Both"
                                            ItemTemplate="{StaticResource SlideViewItemTemplate}" SelectionChanged="slideView_SelectionChanged" />
             
            <StackPanel Grid.Row="1" Margin="52,20,24,12">
                 
                <TextBlock Text="{Binding ElementName=slideView,Path=SelectedItem.ID}" FontSize="{StaticResource PhoneFontSizeExtraLarge}" FontFamily="{StaticResource PhoneFontFamilySemiLight}" TextWrapping="Wrap"/>
              </StackPanel>

Any pointer in the right direction would be welcome.

Thanks,
Alain

1 Answer, 1 is accepted

Sort by
0
Alain
Top achievements
Rank 1
answered on 31 Aug 2013, 12:19 PM

Problem solved <obviously>.

However, I was experimenting with the RadSlideView adding for example the following to the xaml code

SelectedItem="{Binding Path=SelectedItem.ID, Mode=OneWay}"


 and was wondering if there was a way of setting the property that way in xaml and then retrieving it with:

slideView.SelectedItem;

 


Thank you,
Alain


 

Tags
SlideView
Asked by
Alain
Top achievements
Rank 1
Answers by
Alain
Top achievements
Rank 1
Share this question
or