I have a carousel that is using a ListCollectionView of a "CutomObject" List as ItemsSource ( for filtering purpose I need it this way )
Every time the user creates a new CustomObject, I make a refresh setting again the ItemSource of this carousel, with this new object in it.
|view = new ListCollectionView( LayoutCapturer.GetSavedLayouts() ); |
| view.Filter = FilterObject; |
| this.carousel.ItemsSource = view; |
| this.carouselPanel.ItemsPerPage = ( carousel.Items.Count < 15 ) ? |
| ( ( carousel.Items.Count % 2 == 0 ) ? carousel.Items.Count - 1 : carousel.Items.Count ) : 15; |
But at this point I need that the top most element of the carousel to be the CustomObject I've just created.
Is that possible?