<TabControl.ItemContainerStyle> <Style TargetType="TabItem"> <!--set the content template in setter first--> <Setter Property="ContentTemplate" Value="{StaticResource TabTemplateRotateLeft}" /> <Style.Triggers> <!--use data trigger to switch the content template--> <DataTrigger Binding="{Binding}" Value="All" > <Setter Property="ContentTemplate" Value="{StaticResource TabTemplateRotateRight}" /> </DataTrigger> </Style.Triggers> </Style> </TabControl.ItemContainerStyle>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)