Archive for March, 2009

[Silverlight 2] Chart Builder

Tags: ,

Today is the day of posting about handy code generators! Here’s one more to add to the list: ChartBuilder
This site will generate the code needed to create a Silverlight Chart element [which can be found in the System.Windows.Controls.DataVisualization [Charting] library].
Purdy!
See here for a Charting overview if you haven’t seen this toolkit item yet.

Continue reading » No comments

[Silverlight 2] Dependency Property Generator

Tags:

I bumped into this handy little code generator which will create code for setting up a Dependency Property written by Kirupa Chinnathambi: Dependency Property Generator
Creating a custom Dependency Property requires specific setup steps, so this little generator could be useful

Continue reading » No comments

[Silverlight 2, C#] Invoke a function after [blah] seconds

Tags: ,

First of all I would like to say that I love delegate functions. Madly and deeply. Alright, let me proceed…
Today, one of my tasks was to simulate random requests to our web services so that one of our user controls could be changed to be able to handle a situation where one request [...]

Continue reading » No comments

[Silverlight *] “I keep getting reprompted to install Silverlight – even though I JUST installed it”

Tags:

We recently deployed our Silverlight app to the rest of the teams in our company, and I had a user that came to me because no matter how many times he installed Silverlight [by clicking on the installation link he was given on the page] it would keep prompting him every time he tried to [...]

Continue reading » No comments

[Silverlight 2, C#] Calling a JS function from Silverlight

Tags:

So, I was trying to come up with a way to automatically close my Silverlight Test App after a run [so that it could be run on an overnight machine] and I came across an interesting method of calling a javascript function from within my Silverlight application.
It’s actually very easy to do!
In the html [...]

Continue reading » 1 Comment

[Silverlight 2] Isolated Storage Location… Vista? XP? Gah!

Tags: ,

What started out small ended up as an epic journey…
As I posted before, I have been using isolated storage to log results from my unit test runs and then have been parsing those files with a python script.
What’s that… something doesn’t work when I try it on Vista???
All was working on my machine [...]

Continue reading » 2 Comments

[C#] What the heck is “() =>” and what kind of magic does it do?

I was merrily making my way through some examples about asynchronous testing using the Silverlight test framework when I stumbled across something like this:

EnqueueCallback(() => testDriver.TypeSearchPrefix("s"));

I had idea about what it did, but I wasn’t 100% certain, so I tried googling “() =>” and failed hard. I knew I had seen it suggested to [...]

Continue reading » 3 Comments