Skip to main content

Microsoft Silverlight

Answered Question How to increase the hieght for rectangle?RSS Feed

(0)

kolipaka
kolipaka

Member

Member

6 points

15 Posts

How to increase the hieght for rectangle?

Hi,

I  have one  image  and  one  rectange(first  rectangle hieght is 0) when  we  click  on image retangle hieght will increase,that is  my  requirement,for  this  one  i  have  return  a  storyboard with  double  animation.

Here my  code:

<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RecDetails" Storyboard.TargetProperty="(FrameworkElement.Height)">

<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>

<SplineDoubleKeyFrame KeyTime="00:00:01" Value="150"/>

</DoubleAnimationUsingKeyFrames>

Here my  problem is hieght increasing  from top,but  i  want  like hight increase  from origin,please  any  one  help  how  can i  cheive  this......

thanks  in  advance.

Subhash.Kolipaka

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Answered Question

Re: How to increase the hieght for rectangle?

Hi Subhash ,

Try Increasing ScaleY according to your Requirement instead of Height.

Mark as answer if this post answered your question.

Harsh Bardhan
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities