开发者

How use math operations in XAML

开发者 https://www.devze.com 2023-01-01 07:44 出处:网络
I want use开发者_运维知识库 math operations in XAML code but I dont know how?You mean you want to perform arithmetic operations in xaml?

I want use开发者_运维知识库 math operations in XAML code but I dont know how?


You mean you want to perform arithmetic operations in xaml?

check out this post (it comes with a sample project)

It allows you to specify code like this:

<TextBlock Height="{Binding ElementName=tb1, Path=ActualHeight,
  Converter={StaticResource JScript},
  ConverterParameter=Int32.Parse(values[0])/10 *100-110 }" Background="Red"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号