Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to rotate rectangle throw the z axis and to fade in fade out in the same time
how can i do that?

i have done just the fade in fade out that work fine

XML
<Style x:Key="myrect" TargetType="Rectangle">

           <Style.Triggers>



                   <EventTrigger RoutedEvent="MouseEnter">

                   <BeginStoryboard>

                       <Storyboard >
                           <DoubleAnimation   Storyboard.TargetProperty="Opacity"
                                   From="1.0" To="0.2" Duration="0:0:.9"
                              AutoReverse="True"

                              >
                         </DoubleAnimation>

                       </Storyboard>

                   </BeginStoryboard>
               </EventTrigger>

           </Style.Triggers>


       </Style>
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900