Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
ScrollIntoView is not working for me
posted

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. 

Parents
  • 280
    posted

    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());
     t.BringIntoView();

    And it scrolls to the very BOTTOM of the area. WTF man? More interesting is that if I do:

    resultList.Last()

    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.

Reply Children