Silverlight: How to use a binding in setter for a style (or an equivalent work around)

前端 未结 4 904
臣服心动
臣服心动 2020-12-17 15:26

If the person who answered this question is right, you cannot put a binding as the value in a setter in a style in Silverlight. Which is a shame, because I have 4 textblocks

4条回答
  •  天命终不由人
    2020-12-17 16:23

    I had the exact same problem a few days ago and found the following blog post. http://blogs.msdn.com/b/delay/archive/2009/11/02/as-the-platform-evolves-so-do-the-workarounds-better-settervaluebindinghelper-makes-silverlight-setters-better-er.aspx

    It works like a charm.

提交回复
热议问题