Archive for October, 2009

[Silverlight 2, C#] How to tell if a Storyboard is currently running?

Tags: ,

To do this you can check the current ClockState of the animation.

bool isRunning = (MyStoryboard.GetCurrentState() == ClockState.Active);

Continue reading » 2 Comments

[C# 3.0+] Annonymous Types

Tags:

What Does it do?
Annonymous Types

var annon = new { name1 = var1, name2 = var2, … };
// or
obj annon = new { name1 = var1, name2 = var2, … };

// Example
obj results = new { OriginalRequest = myRequest, Data = foundData, Status = dataStatus };
// Now you can see results.Data!

Limitations
I had originally wanted to use [...]

Continue reading » 2 Comments