locked
What's the diffent between ScrollIntoView(object item, ScrollIntoViewAlignment alignment) and ScrollIntoView(object item) RRS feed

  • Question

  • Hello All.

    When I use ScrollIntoView(object item), the parameter 'item' can be 'null'.

    But when I use the ScrollIntoView(object item, ScrollIntoViewAlignment alignment),  the parameter 'item' can't be 'null'.

    Why is that?

    Monday, September 30, 2013 5:14 AM

Answers

  • Hi Shirley,

    Think of the following scenario, if you set "item" as "null" in ScrollIntoView(object item, ScrollIntoViewAlignment alignment), then which item can be applied with ScrollIntoViewAlignment?

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, September 30, 2013 7:30 AM
    Moderator

All replies

  • Hi Shirley,

    Think of the following scenario, if you set "item" as "null" in ScrollIntoView(object item, ScrollIntoViewAlignment alignment), then which item can be applied with ScrollIntoViewAlignment?

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, September 30, 2013 7:30 AM
    Moderator
  • Nothing....,

    I thought ScrollIntoViewAlignment would be used to the first item.

    I just want to know if it has other thing to be noted when I use  ScrollIntoView(object item, ScrollIntoViewAlignment alignment), I'm affraid to miss something.

    Monday, September 30, 2013 9:22 AM