comparing two dynamic values in DataTrigger
问题 I want to compare two dynamic values User_id and user_id for equality and setting one property Cursor . Also, when the cursor is hand, I have to execute one function. How to do it? This is the code that I am using: <DataTrigger Binding="{Binding Path=User_id}" Value="{Binding Path=user_id}"> <Setter Property="Cursor" Value="Hand"/> </DataTrigger> 回答1: There are a couple options to attack this. #1. Multibinding Converter You can use Multibinding to input the two values into a