I have a tile by using TileFromItem. Calling ScrollIntoView on that tile does nothing at all.
I am binding the tileControl to a list of Objects so the Tile is created for the item once its added to the list. The tile for the new item does exist at this point. I've done an UpdateLayout() before I make the ScrollIntoView call.
Is there any other way to simply say, put the scrollbar at the TOP. I don't even need to scroll anywhere specific. Just reset it. This is very frustrating.
The simpliest way to scroll the tile into view is to call ScrollIntoView method of XamTileControl passing the tile object that should be in view. Let me know if you have any questions.
There is something buggy about Scrolling in your XamTilesControl.
I made a static set of tiles and i made a button that does ScrollIntoView on the Tile, because theres no objects now and it doesn't work. When I don't have a list of objects, only static tiles, what should I do?
I gave the static tile a name to reference and did .BringIntoView and this works occasionally but most of the time the scroll bar moves but the tiles don't.
When Binding to a list of dynamic objects neither method works. I can get the TileFromItem and do .BringIntoView on the tile object. Nothing. I do ScrollIntoView on sending the actual object... nothing...
A huge complaint from my client is that when a new tile is added they want the container to scroll up to the top where it is located. I cannot get your tool to allow me to scroll it programatically, only manually.
I'm using 10.1.20101.1000
This is not Matthew, but Cody.
Edit: I created a blank tilesControl with none of the styling I had done or the NormalMode constraints or binding and ScrollIntoView works. Where is there documentation as to why certain features and constrains and which features and constrains, most importantly, effect this?
Quick tidbit... the tilesControls's that work animate on load, even when using static tiles, and the ones that don't just have the tiles there, no animation. If that makes any sense.
Still looking for some details here. Sometimes it works sometimes it doesn't. What settings, stylings, etc should I avoid? I managed to get it to work on a tiles control that I'm binding objects to, but now the one I've got static XAML defined Tiles in will not.
I'm still looking for some insight on this.
I have one tile control that will react to BringIntoView on a tile. They are static tiles set in the xaml.
I have another that will NOT scroll programmatically at all.
This is very important to the usability of the entire project. The newest tile needs to be brought into view when it is added.
I am currently looking into this. I will post more information as soon as I have them.
I look forward to it.
If it helps, I've noticed today that I get
A first chance exception of type 'System.InvalidOperationException' occurred in System.Core.dll
As I step over the line that calls ScrollIntoView()
Do you guys use Virtualization anywhere? I bet its related to why the listbox doesn't always scroll either...
I submitted this in our issue tracking system with an issue ID of 73180. It will be assigned to a developer to research for a fix, workaround, or other resolution. If some other resolution is reached, I will contact you with this information.
Any progress? This is most bothersome to the client. Its always the little things that people focus on.
This issue was fixed recently, and the service release that addressed the issue is already out. Please download the latest SR and test your application, and let me know if you have any questions.
Ok, well.... ScrollIntoView is NOT fixed. I installed the update (I'm using 10.1.20101.2216)
However, I'm having more luck this time with the BringIntoView function on the Tile object. Now my problem is that it scrolls RANDOMLY! I tell it to scroll to the top object:
Tile t = tilesControlResults.TileFromItem(resultList.First());
And it scrolls to the very BOTTOM of the area. WTF man? More interesting is that if I do:
it scrolls to the very BOTTOM minus 1 tile.....
Please tell me precisely what I should be doing to scroll to the TOP when a new item is added. That's all I need.
EDIT: Just to clarify. ScrollIntoView continues to do nothing at all. Ever.
Looking for more assistance here. This doesn't' work as expected.