How to do calculation in xaml while binding?

后端 未结 2 727
旧巷少年郎
旧巷少年郎 2020-12-03 16:58

I can bind a label to a slider as shown below:

How do

相关标签:
2条回答
  • 2020-12-03 17:44

    You cannot do the calculation in XAML, you could however apply some converter which does it for you.

    This question might be relevant: How do you change a bound value, reverse it, multiply it, subtract from it or add to it?

    0 讨论(0)
  • 2020-12-03 17:44

    There are already a few projects which bring expressions to Bindigs, e.g. see CalcBinding or QuickConverter.

    0 讨论(0)
提交回复
热议问题