Search code examples
wpfstoryboardexpression-blend

Enable animation with blend using property binding condition


I am working with blend 4, I am trying to play some StoryBoard using ControlStoryBoardAction with the contidion: if a specific Border Element in my UC has greater width then 250.

I set the next configuration: Set data binding

Config ControlStoryBoardAction

And when I run my application I am getting the following error:

LeftOperand of type "OpeningViewModel" cannot be used with operator "GreaterThan". Source=Microsoft.Expression.Interactions

What I am doing wrong? How can I launch StoryBoard with element property condition?


Solution

  • I found what I did wrong. When you choose property value to bind, you need do it thro"Element Property binding...". I used "Data Binding" and this is the reason it raised an exception.

    enter image description here