I am trying to refactor my Diff Overview control (which inherites from Slider) shown on the left side of this screenshot:
![Ähnlich1](https://user-images.githubusercontent.com/2129700/55508209-b2999b00-5659-11e9-9bee-e3cd7393f495.png)
into a control version that is based on a Scrollbar since that seems to be more natural in terms of the control behavior. In that process I am trying to integrate your WpfRangeControl on this branch:
Where I cannot seem to get further is at the binding - I have tried to use a binding similar to one of your demo projects but I cannot seem to get it to work :-( - the code I am having looks like this:
<range:RangeScrollbar Grid.Column="1" Width="30" Margin="3"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
ViewportSize="{Binding NumberOfTextLinesInViewPort}"
Minimum="0"
Maximum="{Binding DiffCtrl.MaxNumberOfLines}"
Value="{Binding OverViewValue, Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
<range:RangeItemsControl
ItemsSource="{Binding DiffCtrl.ViewA.DocLineDiffs}"
>
<range:RangeItemsControl.ItemTemplate>
<DataTemplate>
<Ellipse Name="elp" Fill="DarkRed" Width="8" Height="8"
range:RangePanel.Position="{Binding IndexLineNumber}"
range:RangePanel.Alignment="Center"
/>
<DataTemplate.Triggers>
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
<Setter TargetName="elp" Property="Fill" Value="DarkSalmon" />
</Trigger>
</DataTemplate.Triggers>
</DataTemplate>
</range:RangeItemsControl.ItemTemplate>
</range:RangeItemsControl>
</range:RangeScrollbar>
...but there is no Elipse item showing up in the RangeScrollbar UI space - what am I doning wrong? Could you please help me to get this to work? I probably don't understand all sides of the RangeScrollbar and the RangeItemsControl but I hope you can point me into the right direction :-)