Can anyone please help how to programatically add the following style:
<style>
<style.Triggers>
<Trigger Binding="{Binding CustomerId}" Value ="1"/>
<setter Property="Background" Value="Red"/>
</style.Triggers>
</style>
See Question&Answers more detail:os