28
votes
2answers
28k views

Simple animation using C#/Windows Forms

I need to knock out a quick animation in C#/Windows Forms for a Halloween display. Just some 2D shapes moving about on a solid background. Since this is just a quick one-off project I really don't ...
15
votes
3answers
18k views

Fading out a wpf window on close

I want to fade a window in/out in my application. Fading in occurs on Window.Loaded and I wanted to fade out on close (Window.Closed or Window.Closing). Fading in works perfectly but a RoutedEvent is ...
12
votes
2answers
108 views

WPF Animation that bends and follows some path geometry

Okay, so I'm working on a loading screen and I want to flare it up a bit. Basically what I am trying to do is animate an object along path geometry data...I emphasize 'along' because keeping a fixed ...
11
votes
2answers
2k views

How to fix flicker in a WinForms form?

I am constantly drawing frames, and I need the form to not flicker. How do I accomplish this? public partial class Form1 : Form { Image[] dude = new Image[3]; static int renderpoint = 0; ...
10
votes
2answers
8k views

How to create ASCII animation in Windows Console application using C#?

I would like it to display non-flickery animation like this awesome Linux command; sl http://www.youtube.com/watch?v=9GyMZKWjcYU I would appreciate a small & stupid example of say ... a fly. ...
8
votes
5answers
9k views

Storyboards cant find ControlTemplate elments

I've created some fairly simple XAML, and it works perfectly (at least in KAXML). The storyboards run perfectly when called from within the XAML, but when I try to access them from outside I get the ...
8
votes
3answers
5k views

Fading out a window

I am currently developing a wpf c# application. I have added to event triggers to the xaml of the form to fade in when the window loads and fades out when the window closes. The fading in works ...
8
votes
3answers
2k views

C# gif Image to MemoryStream and back (lose animation)

I have a small problem and I do not find any solutions. I want to convert a GIF to a byte[] and then back to a GIF. I works fine but I lose the animation. It is a perfectly animated GIF when I start ...
8
votes
2answers
3k views

WPF Animation - Animating Bezier curve points

I'm working on a project that involves drawing curved paths between two objects. Currently, I've been writing some test code to play around with bezier curves and animation. The first test is simply ...
7
votes
2answers
2k views

Spritesheet in Silverlight

Does anyone have an example of using a spritesheet in Silverlight? I'd like to clip the image and, when a button is pressed, jump to the next frame. (If the user keeps tapping the button, it'll look ...
7
votes
3answers
4k views

Cannot resolve TargetName - Silverlight4 C#

I am getting the error Cannot resolve TargetName grdGeneral. What I am trying to do is have a fade out function which accepts a grid and fades the opacity to zero. I have this function called on ...
7
votes
4answers
716 views

creating an advanced metronome in WPF (problems with code created animation and completed event)

Good afternoon, over the last few weeks I have been working on a project to create an advanced metronome. the metronome is made up of the following things a swinging arm a light flash a collection ...
7
votes
3answers
288 views

Correct/Incorrect usage of delegates for achieving extensibility

I'm trying to give users of my GUI library unrestricted customization of in/out transition effects while still maintaining simplicity / preventing misuse (for when a Control enters or exits the view). ...
6
votes
4answers
8k views

WPF Fade Out on a control

In my WPF app, I have a feedback control that I want to appear after a user action completes (save data, delete...). The visibility is set to Hidden to begin and style set to the animateFadeOut style ...
6
votes
3answers
12k views

WPF: Animating TranslateTransform from code

I have a WPF canvas on which I'm dynamically creating objects from code. These objects are being transformed by setting the RenderTransform property, and an animation needs to be applied one of those ...

1 2 3 4 5 36
15 30 50 per page