scrollbars on dockable content, arrows too close together

Mar 22, 2011 at 12:23 AM

For some reason my scrollbars are misbehaving, see image:

There is plenty of info to scroll through, but the arrows are shown close together and give no indication where the current scroll position is.


Here is the XAML for the dockable content:

<ad:DockableContent x:Class="Strive.WPF.LogView"
             Title="Log View" Height="300" Width="300">
            <AlternationConverter x:Key="BackgroundConverter">

            <Style x:Key="alternatingWithBinding" TargetType="{x:Type ListViewItem}">
                <Setter Property="Background" 
                        Value="{Binding RelativeSource={RelativeSource Self},
                              Converter={StaticResource BackgroundConverter}}"/>

        <ListView Name="listView1" AlternationCount="3" ItemsSource="{Binding Path=LogModel.LogEntries}"
                  ItemContainerStyle="{StaticResource alternatingWithBinding}"/>

Any tips?

Nov 12, 2012 at 3:16 AM

Hate necroing a thread over a year old, but I had the same issue and have been struggling to find a solution all day, and figured others may want to know what it was.

It turned out that it was down to the window being initialized while in a hidden state - I was doing this in order to display a custom splash screen window, then showing the main window after everything had loaded.   As a workaround, I'm now minimizing the window instead of hiding it, and my scrollbars are now working fine.