I want use math operations in XAML code but I dont know how?
A:
Since I don't know what you're trying to do exactly, I'll guess, and point you at the top hit on Google for the search 'math in xaml'.
Donnie
2010-05-24 12:39:33
Thanks, but it's not what I want. I found the answer here - wincode.org/ программирование/ математические-операции-в-xaml/ (without spaces)
Alex Sabaka
2010-05-24 12:45:50
A:
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"/>
Jo-wen
2010-08-16 08:15:18