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
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 ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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 ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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 >>
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 >>