(). a Data Path. .
The reason it works when it is specified in a Contentstyle property RepeatButton(in style ScrollViewer) is hidden in the style of this RepeatButton- ScrollBarLineButtonStyle:
<RepeatButton Style="{StaticResource ScrollBarLineButtonStyle}"
...
Content="M 0 4 L 7 4 L 3.5 0 Z"/>
In this style you will find Pathwith a property Datarelated to the property of the Contentobject RepeatButton:
<Path Data="{Binding Path=Content,RelativeSource={RelativeSource TemplatedParent}}"
.../>
source
share