How to do calculation in xaml while binding?

后端 未结 2 735
旧巷少年郎
旧巷少年郎 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?

提交回复
热议问题