ScrollBars in VirtualizingWrapPanel

8 posts, 0 answers
  1. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 23 Dec 2011 Link to this post

    How do I get scrollbars to appear when using a virtualizingwrappanel?

    I have a listbox and an itemspanel defined as

    <Setter Property="ItemsPanel">
        <Setter.Value>
            <ItemsPanelTemplate>
                <telerik:VirtualizingWrapPanel ItemWidth="195" ItemHeight="88" IsItemsHost="True"/>
            </ItemsPanelTemplate>
        </Setter.Value>
    </Setter>


    and my listbox defined as

    <ListBox ItemsSource="{Binding}"  TextSearch.TextPath="Name" Name="lstFiles" HorizontalContentAlignment="Left" Padding="3" Background="{x:Null}" BorderBrush="{x:Null}" SelectionMode="Single" Margin="0,75,0,0" >
        <ListBox.GroupStyle>
            <GroupStyle HeaderTemplate="{StaticResource groupTemplate}" />
        </ListBox.GroupStyle>
    </ListBox>

    No scrollbars ever appear however.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 27 Dec 2011 Link to this post

    Hi Brent,

    Please take a look at our demos for a reference. Furthermore, I am sending you the sample project I used for testing the issue you described. Could you take a look at it and let me know how it differs from your scenario ? 

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 29 Dec 2011 Link to this post

    I took a look at the demos which show a scrollbar,  the only parameter I see that seems related is ScrollStep.  I tried adding this but it did not do anything.  The sample you sent would be sufficient to show what needs changed.  when I run the attached sample I do not get scrollbars initially or when I resize the form to a smaller size.

    Brent
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 30 Dec 2011 Link to this post

    Hi Brent,

    I have tried to reproduce the issue, but unfortunately still without any success. Could you take a look at this small video illustrating my attempt ? Is there anything more specific that I need to do in order to get the same behavior as yours ?  

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 04 Jan 2012 Link to this post

    I see it working on your end and I also have scrollbars with your example. I have a demo where it is not working but cannot attach a zip how do I get you my sample?
  7. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 04 Jan 2012 Link to this post

    Hi Brent,

    You can open a support ticket and attach you application there.
     
    Greetings,
    Yordanka
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  8. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 04 Jan 2012 Link to this post

    Thanks, I have submitted support ticket #498193 for this.
  9. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 05 Jan 2012 Link to this post

    Hi,

     I've checked your project and I've noticed that the panel is used in a grouped ListBox which will measure with infinity height and width in this case. You will not get scrollbars in case of infinity. The standard WPF WrapPanel will not even wrap in this case - our VirtualizingWrapPanel will wrap your items but still you will not get scrollbars. 

    Greetings,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
UI for WPF is Visual Studio 2017 Ready