Binding to element in WPF: can the Path expression do math?
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-05-03T09:34:11Z
Indexed on
2010/05/03
9:38 UTC
Read the original article
Hit count: 156
Hi
I'm trying to bind a control to the parent's Height/width property using ElementName
and a Path. However, I don't want to bind to the actual height, but to exactly half the height.
Can the Path
expression do the math?
e.g. Path={ActualHeight/2}
I couldn't find a way to do that. IS there any other clever approach?
Thanks!
© Stack Overflow or respective owner