When you set the DataContext
on your Control
, all other bindings will use the new object as their source.
If you check your output window, you'll see a binding error saying that there is no CurrentView
property on whatever object is returned by that property.
Instead, you should just do:
<myCtl:Pager IsTabStop="False" Style="{StaticResource MainPager}"
DataContext="{Binding CurrentView, Converter={StaticResource SectionToPagerDriver}}"
Visibility="{Binding Converter={StaticResource SectionToVisibility}}"/>