What is the replacement for DataTrigger in Silverlight

前端 未结 4 1304
南笙
南笙 2020-12-03 05:26

This is my scenario.

I have 2 Properties. Type and State.

Type is an Enum with 3 values eg, ball, car, arrow. State is an int which would accept 3 state valu

4条回答
  •  抹茶落季
    2020-12-03 05:54

    I'd just use a converter that takes your object with 2 properties and returns an image. Code like that in pure XAML is painful and really belongs in C#.

提交回复
热议问题