Dear Telerik Team,
We've bumped into next issue. There is RadListBox which exposes CollectionViewSource with grouping.
When user scrolls the listbox up and down (with a mouse wheel or just dragging the thumb), vertical scrollbar changes it's length.
We've ensured that this bug is being reproduced with every Telerik theme set up. And everything is fine if we switch to default WPF ListBox control.
Here's the code snippet :
Is there any way to fix this behavior? Any help will be appreciated.
Best Regards, Stanislav
We've bumped into next issue. There is RadListBox which exposes CollectionViewSource with grouping.
When user scrolls the listbox up and down (with a mouse wheel or just dragging the thumb), vertical scrollbar changes it's length.
We've ensured that this bug is being reproduced with every Telerik theme set up. And everything is fine if we switch to default WPF ListBox control.
Here's the code snippet :
<
Window
x:Class
=
"ListBoxTest.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Width
=
"1024"
Height
=
"768"
>
<
Window.Resources
>
<
CollectionViewSource
x:Key
=
"Results"
Source
=
"{Binding}"
>
<
CollectionViewSource.GroupDescriptions
>
<
PropertyGroupDescription
PropertyName
=
"Category"
/>
</
CollectionViewSource.GroupDescriptions
>
</
CollectionViewSource
>
</
Window.Resources
>
<
DockPanel
DataContext
=
"{Binding}"
>
<
telerik:RadListBox
Margin
=
"0 0 10 10"
ItemsSource
=
"{Binding Source={StaticResource Results}}"
SelectedItem
=
"{Binding SelectedItem, Mode=TwoWay}"
>
<
telerik:RadListBox.GroupStyle
>
<
GroupStyle
>
<
GroupStyle.HeaderTemplate
>
<
DataTemplate
>
<
TextBlock
Margin
=
"10 10 0 10"
FontWeight
=
"Bold"
Foreground
=
"LightBlue"
Visibility
=
"{Binding Name}"
Text
=
"{Binding Path=Name}"
/>
</
DataTemplate
>
</
GroupStyle.HeaderTemplate
>
</
GroupStyle
>
</
telerik:RadListBox.GroupStyle
>
<
telerik:RadListBox.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
StackPanel
Margin
=
"5"
VerticalAlignment
=
"Center"
>
<
TextBlock
FontWeight
=
"Bold"
><
Run
Text
=
"{Binding FirstName, Mode=OneWay}"
/> <
Run
Text
=
"{Binding LastName, Mode=OneWay}"
/></
TextBlock
>
<
TextBlock
>Email: <
Run
Text
=
"{Binding Email, Mode=OneWay}"
/></
TextBlock
>
<
TextBlock
>Phone: <
Run
Text
=
"{Binding PhoneNumber, Mode=OneWay}"
/></
TextBlock
>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadListBox.ItemTemplate
>
</
telerik:RadListBox
>
</
DockPanel
>
</
Window
>
Is there any way to fix this behavior? Any help will be appreciated.
Best Regards, Stanislav