Undoubtedly, the following Text property binds shiftButtonText when the IsPressed property of the current DataContext changes. Is this the type of thing you're looking for?
<DataTemplate.Triggers> <DataTrigger Binding="{Binding Path=IsPressed}" Value="True"> <Setter TargetName="shiftButtonText" Property="Text" Value="{Binding Path=PressedText}"/> </DataTrigger> </DataTemplate.Triggers>
Hope this helps,
source share