locked
【Bug】ScrollViewer can not show content (win8.1 / VS2013) RRS feed

  • Question

  • please see Code and Image,When the content's width > 3000000,content will be clip. Code is very simple,please test,Thanks.

        <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
            <ScrollViewer  VerticalScrollMode="Disabled" HorizontalScrollMode="Auto" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" VerticalAlignment="Top" >
                <Rectangle Fill="Red" Height="500" Width="3000000"/>
            </ScrollViewer>
    
        </Grid>





    Wednesday, February 19, 2014 7:57 AM

Answers

  • Hi LiangliangWang,

    Sorry this is the English forum and if you wish to talk with us by Chinese, MSDN Chinese forum is suggested. And for your question, I can't tell exactly when the issue will be fixed, but its already on our list.

    However if you need this LineView function as win8.0 photo, you could still keep the app for win8.0, the app for win8.0 should works fine with win8.1 operation system.

    Actually hard to say any workaround, since its a kind of limitation, but when you display the image, what is your image container? if it is a GridView, then don't worry, Virtualization is enabled for GridView Using virtualization with a list or grid, or you can put a ItemsControlin your scrollviewer for supporting both UI and data virtualization.

    --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.




    Friday, February 21, 2014 4:12 AM
    Moderator

All replies

  • Hi LiangliangWang,

    Yes, I can reproduce this, and the current X offset seems to be 2097158.0 in my environment, not sure if this is a width limit for scrollviewer content, will consult senior engineers for confirming this issue.

    However scrollviewer cannot play with UI virtualization, I think if you can share your scenario with us, we may found a workaround for you.

    Thanks for reporting this to us.

    --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.

    Thursday, February 20, 2014 1:53 AM
    Moderator
  • Hi LiangliangWang,

    I have already talked with our engineers and this is a known issue, there is no limitation for ScrollViewer content.

    Thanks and 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.

    Thursday, February 20, 2014 2:44 AM
    Moderator
  • My English is so bad.Please understand.

    我的英语比较差,请谅解。

    我们的式样类似win8下系统Photo的LinerView(大图模式)所以展示的非常长,不过win8.1下系统Photo已经没有这个功能了。

    我们自己实现的UI virtualization,以前在Win8上是好用的,升级到8.1后出现了上述问题。还有我们发现能显示的极值是2的21次方(2097152),希望对你们有帮助。

    我想知道MS什么时候能够修正这个bug,是否能够赶得上我们的Deadline,如果不能,能够提供workaround也是非常感谢的。

    谢谢,thanks

    Thursday, February 20, 2014 6:26 AM
  • Hi LiangliangWang,

    Sorry this is the English forum and if you wish to talk with us by Chinese, MSDN Chinese forum is suggested. And for your question, I can't tell exactly when the issue will be fixed, but its already on our list.

    However if you need this LineView function as win8.0 photo, you could still keep the app for win8.0, the app for win8.0 should works fine with win8.1 operation system.

    Actually hard to say any workaround, since its a kind of limitation, but when you display the image, what is your image container? if it is a GridView, then don't worry, Virtualization is enabled for GridView Using virtualization with a list or grid, or you can put a ItemsControlin your scrollviewer for supporting both UI and data virtualization.

    --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.




    Friday, February 21, 2014 4:12 AM
    Moderator
  • We also hit against this issue. Any new word about this? Do you have plans to fix it and when can we expect the fix?


    notacat

    Monday, September 1, 2014 8:58 AM