Use style trigger to set property of a nested object

前端 未结 3 1104
感动是毒
感动是毒 2020-12-06 06:21

I have a small polygon written on the large canvas. I want to highlight a polygon when mouse is moving over the canvas. The code is like this:



        
3条回答
  •  一向
    一向 (楼主)
    2020-12-06 07:03

    It's looking for a property of the Canvas called 'polygon', which in turn has a property called 'Stroke'. You need to use TargetName if you want the setter to target a different object.

    
    

提交回复
热议问题