I am working through the sample code available in the Prism Github repo and I am confused about a particular line.
<Style TargetType="TabItem">
<Setter Property="Header" Value="{Binding DataContext.Title}" />
</Style>
Why does the Binding have to specify the DataContext property? My understanding is the binding source by default is the DataContext for elements. Is it because it is in a style? It seems like the binding source here is the TabItem and you have to access the DataContext property explicitly.