Setting a property with an EventTrigger

前端 未结 4 2079
你的背包
你的背包 2020-11-27 02:35

I want to be able to set a property with an EventTrigger, there\'s a number of problems with this.

1) EventTriggers only support Actions, so I must use a storyBoard

4条回答
  •  不知归路
    2020-11-27 03:21

    As much as I love XAML, for this kinds of tasks I switch to code behind. Attached behaviors are a good pattern for this. Keep in mind, Expression Blend 3 provides a standard way to program and use behaviors. There are a few existing ones on the Expression Community Site.

提交回复
热议问题