tags:

views:

165

answers:

3

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
Thanks, but it's not what I want. I found the answer here - wincode.org/ программирование/ математические-операции-в-xaml/ (without spaces)
Alex Sabaka
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