I wrote a style to highlight some buttons depending on which Tab is selected, so I binded the DataTrigger to the SelectedIndex of the TabControl.
DataTrigger
The style c