I have a XamTileManager that has as its ItemsSource an observable collection of object. When a new items is added to the collection, the tile shows up in the tile manager, but not in the current view. I would like to be able to automatically scroll the TileManager to bring the new tile into view. This is done with databinding, not by manually adding tiles.
Help?
Hello Eric,
If you would like to disable the animations, I can suggest using the Olga’s approach. I am sending you a modified version of my sample application(TileMaganerDataBindingModified.zip) not using animations.
If you have any other questions on this matter, feel free to ask.
This does work. Curious is there is a way to do this with Animation turned off. I really didn't want to have the animation enabled for this.
Hi Eric,with another approach you can use the XamTileManager.ScrollInToView(object item) method. Its argument is the object that has been added to the ItemsSource collection. If you have no access to the added object, you can subscribe to the CollectionChanged event, and asynchronously invoke this method.
I am just checking if my last reply was helpful for you.
If you require any further assistance please do not hesitate to ask.
I have been looking into your post and I have created a simple sample project that demonstrates the functionality that you would like to achieve.
I have handled the ‘AnimatedEnded’ event and in its body I am calling the ‘Focus’ method for the latest added tile into the XamTileManager.
I am attaching the project(TileManagerDataBinding.zip) and if you need any further assistance on this matter, feel free to ask.