Archive for C#

Artefact Animator brings Flash’s Tweener syntax to Silverlight and WPF

Artefact Animator provides an easy to use framework for procedural time-based animations in Silverlight and WPF. Download the latest version from http://artefactanimator.codeplex.com/.

Install Microsoft Silverlight

Inspired by the Flash community and forged out of frustration, Artefact Animator brings to WPF and Silverlight what Tweener has done for Flash. If you’ve ever tried to get into animation in C# you’ll soon realize there are way too many steps to get you where you need to be. The consequences are that developers don’t love to animate UI and designers are limited by what they can animate when working with dynamic content.

via http://www.artefactgroup.com/blog/2010/04/artefact-animator-live-and-open-source-for-silverlight-and-wpf/

» » Comments     » del.icio.us     » Digg It!

C# - Arguments via file drop

This issue came up a while ago, but after getting deeper into C# I’ve now been able to track down the answer.

The problem involved loading a dynamic flash file into C# on the fly while still being able to load a default in its absence. You could of course use an XML file but then you would just have to edit it each time you used a different path – lame.

So this solution allows for you to drag a file/files onto an application’s icon, and retrieve a list of those dropped items. If it can’t find your file extension in the argument’s array it’ll return the path to your default file.


The best part about this is just how easy it is to get that list.


One thing to keep in mind ( at least for me ) was that the first array element is a reference to the application being launched. If you drop multiple files I couldn’t tell if they were in any specific order, so I chose to loop through the array instead of picking a consistent element index.

» » Comments     » del.icio.us     » Digg It!

best kansas city bookstore pirodr! 666