storyboard

Storyboard for a DataTemplate element in Silverlight

I have a DataGrid in my application, which have a column with defined CellTemplate with a text block and a button in it. I want to show the button only when hover this specific cell. How can i achieve this? Thanks in advance. ...

In WPF how to animate X property of the UIEllement from the code behind?

I want to animate the rectangle x position from my code behind (as the x position is only determined at the run time). I have got the following code: KeySpline easeOut = new KeySpline(0, 1, 0.3, 1); Storyboard sb = new Storyboard(); DoubleAnimationUsingKeyFrames da1 = new DoubleAnimationUsingKeyFrames(); SplineDoubleKeyFrame keyFrame1...

Storyboard changing property but not reflected in UI

I have this method fired on a button click. MyObj is an extended Control type with two properties CenterX and CenterY with backing dp CenterXProperty and CenterYProperty. With the animation playing the CenterX and CenterY properties of MyObj are changing, but I can't see any movement of the object. private void MoveMyObjectsWithAnimat...

Start template animation as soon as control is loaded.

I have the following code inside my ControlTemplate: <EventTrigger RoutedEvent="ControlTemplate.Loaded"> <EventTrigger.EnterActions> <BeginStoryboard> And I want to start Storyboard which I have defined in ControlTemplate, when control is loaded. So my question is: what in ControlTemplate rises Loaded event...

wpf storyboard results high cpu

Hi all I'm using few storyboards in my application in the style of few controls, the storybards use to flash the control when appears on screen, the problem is that from the first control appear the cpu usage gets to 50% I added Timeline.DesiredFrameRate="20" to the storyboards with no use is there any solution to this problem or at...

Trying to make a XAML created storyboard be called in C# code behind

I have a storyboard here in XAML using Microsoft expression Blend and I am wanting to call this storyboard in C# and I have researched for a day or so and I cannot seem to find the answer. I am at this point <UserControl.Resources> <Storyboard x:Key="LoginClose"> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UI...

Extracting frames from a WPF storyboard

I would like to generate a set of still-frames from an animated WPF storyboard. My goal is to be able to specify a frame-rate, and 'record' any WPF Storyboard, which will generate still PNG images of each 'step' in the timeline. Then I can wire them together any way I like (animated GIF, AVI etc etc). Can anyone with indepth experience w...

How to seek a WPF Storyboard to a specific frame/time offset when not running

I wish to seek to a specific time or frame using the ClockController.SeekAlignedToLastTick - however this does not appear to do anything, unless the Storyboard is running. I dont want to have to 'start' the storyboard, because I only intend the Storyboard to set all dependencyproperty values, and have everything lay-out for that time pos...

What is the meaning of x:Name in xaml (WPF) and its use with Storyboard.

<Border Name="ItemBorder" Margin="5 5 0 5" BorderBrush="Black" BorderThickness="1" Height="75" Width="75"> <Border.Background> <SolidColorBrush x:Name="ItemBorderBrush" Color="LightBlue"/> </Border.Background> <ContentPresenter/> </Border> <ControlTemplate.Triggers> <EventTrigger RoutedEvent="someEvent"> <BeginStoryboard>...

[Silverlight] Storyboard in custom control

Hi all, I have an usercontrol in silverlight that I'm trying to convert to custom control. The usercontrol is working. The customcontrol is working BUT has its storyboard not working. the control is : public class MyControl : Control { public MyControl() { DefaultStyleKey = typeof(MyControl); } public static r...

Tools for storyboarding an application, including GUI

Are there any (preferably free) tools which would let you throw together a quick outline of a UI, and build these into storyboards to create a mockup of how a use-case might play out including popup dialogs that could be raised, etc? ...