0

I need to find the LongListMultiSelector inside ListBox .

    <ListBox x:Name="ListBoxName" Width="400">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <Bewise:ExpanderControl x:Name="bewiseControl" HeaderText="{Binding Title, Mode=OneWay}" Width="400" >
                            <Bewise:ExpanderControl.ContentArea>
                                <toolkit:LongListMultiSelector ItemsSource="{Binding LstProdcuts}" x:Name="LongList">
                                    <toolkit:LongListMultiSelector.ItemTemplate >
                                        <DataTemplate>
                                            <StackPanel >
                                                <TextBlock Text="{Binding Title}"  />

                                            </StackPanel>
                                        </DataTemplate>
                                    </toolkit:LongListMultiSelector.ItemTemplate>
                                </toolkit:LongListMultiSelector>
                            </Bewise:ExpanderControl.ContentArea>

                        </Bewise:ExpanderControl>


                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

i need to access LongList inside ListBoxName.I needed this LongList to get the selected item and itemSource or to add item to the selecteditem of the list

user3207655
  • 188
  • 2
  • 15

1 Answers1

0

You could use the VisualTreeHelper class in order to access elements within.

Example!

Community
  • 1
  • 1
Kulasangar
  • 9,046
  • 5
  • 51
  • 82