Creating an AttachedProperty to hold positions for scrollbar markers
问题 I have created slightly customized vertical scrollbar for my DataGrid. In it I have added an ItemsControl to hold positions of the selected items. Here is a mockup so far with hard-coded markers. Below is my customized vertical scrollbar template where the ItemsControl is placed with hard-coded marker values. <ControlTemplate x:Key="VertScrollBar" TargetType="{x:Type ScrollBar}"> <Grid> <Grid.RowDefinitions> <RowDefinition MaxHeight="18" /> <RowDefinition Height="0.00001*" /> <RowDefinition