Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Programatically Controlling or Moving the Carousel items

$
0
0
Hello Nadav,

You can try something as follows:
private void Button1_Click(object sender, RoutedEventArgs e)
        {
            var club = new Club()
            {
                Name = "Club " + this.count
            };
            this.count++;
 
            this.viewModel.Clubs.Add(club);
 
 
            this.Dispatcher.BeginInvoke(new Action(() =>
                {
                    this.carousel.BringDataItemIntoView(club);
                }), DispatcherPriority.Render);
        }

I also attached a small sample project illustrating the behavior. Please take a look at it and let me know whether it corresponds to your requirements.


Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>