Animation is one of the advanced feature provided by SilverLight/WPF. Lets see how we can use it to animate C1Menu for Silverlight.
Many times you must have gone through websites, where the menu opens with a sliding animation. In this blog, we are going to apply similar animation to C1Menu.
To add animation, we need to edit the default template for C1Menu and modify the Opened VisualState. XAML code mentioned below adds a RenderTransform animation to the ‘ _contentControl’ object holding the menu items:-
<VisualState x:Name="Opened">
<Storyboard>
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="OpenedElement" Storyboard.TargetProperty="(UIElement.Visibility)">
<DiscreteObjectKeyFrame KeyTime="00:00:00">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation From="0" To="1" BeginTime="00:00:00" Duration="00:00:01.000000" Storyboard.TargetName="_contentControl" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
</DoubleAnimation>
</Storyboard>
</VisualState>
Download the attached sample to see detailed implementation.



If you own a PS3 and have whining about the patch, suck it up. You chose ease”-of-use using a dedicated community of modders. ” Yep, buying the game for both the one system we own is defaulting on ‘ease while use’ because we’re TRUE lazy! How dare I not develop a gaming rig when I’ve a current gen system! Especially considering we every one knew, full-well that Skyrim felt utterly broken before but additionally came out, right?
Oh, that’s not too bad then, thank you for sorting that up, much appreciated). I’ve played EQ2 don and doff for the past decades, I love the game the truth is. Your probably right, the system does seem geared to achieve players to just resign yourself and sub. I’m pretty interested this Everquest Next project they have very popular aswell.
Monthly fee = $0 is a sad I think. That plainly means that the lifespan are never close to what I would’ve wished for. There wont be enough money to get adding great content. Another thing I would love to know, why is EVERYTHING refined in MMORPG’s still? There should be A GOOD DEAL MORE random events.. Like a small percentage for many of us world events being partly random in which not EVERYTHING becomes now predictable?! Some “Centaur Attacks” could have a few of the having the Centaur King present (have you thought to 3% chance) that changes the entire siege, where players would require enlist higher level players to generate a chance of defending or getting back their village for design, that could set off a promising tree of events depending on the outcome etc