Explain the purpose of Storyboard.TargetProperty

Answer

Using Storyboard.TargetProperty, the properties of an object can be assigned with values. The objects are referred by Storyboard.TargetName attribute. The following snippet illustrates the change of width and color of a rectangle object.

<Storyboard>
<DoubleAnimation Storyboard.TargetName="MyRectangle" Storyboard.TargetProperty="Width" From="150" To="275" Duration="0:0:2" />

<ColorAnimation Storyboard.TargetName="MySolidColorBrush" Storyboard.TargetProperty="Color" From="Green" To="Red" Duration="0:0:2" />
</Storyboard> 

All silverlight Questions

Ask your interview questions on silverlight

Write Your comment or Questions if you want the answers on silverlight from silverlight Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---