Can we manipulate (subtsract) the valueof height while template bidning?

Posted by Subhen on Stack Overflow See other posts from Stack Overflow or by Subhen
Published on 2010-04-28T10:49:42Z Indexed on 2010/04/28 10:53 UTC
Read the original article Hit count: 239

Filed under:
|
|

Hi, I am currently defining few grids as following:

<Grid.RowDefinitions>
   <RowDefinition Height="{TemplateBinding Height-Height/5}"/>
   <RowDefinition Height="{TemplateBinding Height/15}"/>
   <RowDefinition Height="{TemplateBinding Height/20}"/>
  <RowDefinition Height="{TemplateBinding Height/6}"/>
 </Grid.RowDefinitions>

While the division works fine , the subtraction isn't yielding the output.

Ialso tried like following:

<RowDefinition Height="{TemplateBinding Height-(Height/5)}"/>

Still no result. Any suggestions plz.

Thanks, Subhen

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about xaml