检查MyBooleanValue的值,如果为True,触发器就将Opacity属性的值设置为0.5 <Trigger Property="MyBooleanValue" Value="true"><Setter Property="Opacity" Value="0.5"/></Trigger>