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

Scrollbar always visible

1 Answer 84 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 16 Mar 2016, 07:14 PM

I have this xaml code:

                    <telerik:RadListBox x:Name="ActiveUnitList"

                                        ScrollViewer.VerticalScrollBarVisibility="Hidden"

                                        ItemsSource="{Binding MyUnits}"
                                        ItemTemplate="{StaticResource UnitTemplate}"
                                        SelectedItem="{Binding MyUnits.MySelectedUnit, Mode=TwoWay}" />

but the vertical scrollbar always shows up (even when the list of items fits in the listbox).  I've tried ...Visibility="Disabled" too but that didn't help.

How can I force the scrollbar to disappear?

-Thanks, Tom

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 17 Mar 2016, 09:48 AM
Hi Tom,

I have tried to reproduce the described behavior inside the ListBox Configurator online example, however, the vertical scrollbar in the second RadListBox appeared only when needed ( you could set  Multiple SelectionMode and select items in the first RadListBox).  Could you give us more details on your scenario?

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ListBox
Asked by
Tom
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or