This is a migrated thread and some comments may be shown as answers.

ScrollBars in VirtualizingWrapPanel

7 Answers 118 Views
VirtualizingWrapPanel
This is a migrated thread and some comments may be shown as answers.
Brent
Top achievements
Rank 2
Brent asked on 23 Dec 2011, 07:18 PM
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.

7 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Dec 2011, 09:08 AM
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 >>

0
Brent
Top achievements
Rank 2
answered on 29 Dec 2011, 09:50 PM
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
0
Maya
Telerik team
answered on 30 Dec 2011, 08:49 AM
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 >>

0
Brent
Top achievements
Rank 2
answered on 04 Jan 2012, 05:48 PM
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?
0
Yordanka
Telerik team
answered on 04 Jan 2012, 05:56 PM
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 >>

0
Brent
Top achievements
Rank 2
answered on 04 Jan 2012, 06:43 PM
Thanks, I have submitted support ticket #498193 for this.
0
Vlad
Telerik team
answered on 05 Jan 2012, 01:26 PM
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 >>

Tags
VirtualizingWrapPanel
Asked by
Brent
Top achievements
Rank 2
Answers by
Maya
Telerik team
Brent
Top achievements
Rank 2
Yordanka
Telerik team
Vlad
Telerik team
Share this question
or