Archive for February, 2009

[Silverlight 2, C#] How I extended the SilverlightTest framework to report errors to file…

Tags: , ,

I’ve been struggling for awhile, trying to figure out how I could use the current SilverlightTest framework so that I could store and access the results from the tests results outside of the browser. I have heard that Jeff Wilcox is in the process of getting together a proof of concept to MS regarding [...]

Continue reading » No comments

[Silverlight 2, C#] Writing to a console? Can’t with Console.WriteLine :(

Tags: ,

I was hoping to push some test results into something like a console, and when I saw that the Silverlight framework included System.Console.WriteLine I was pretty pleased… but then some rain on my parade:
Console Class:
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Well boo-urns.   I’ve found [...]

Continue reading » No comments

[Silverlight 2, C#] Zooming: ScrollViewers and Layout Size Issues

Tags: ,

Hi! I’ve worked a little on the side with making my WYSIWYG editor support some zooming on the main canvas.  In doing so I bumped into a few little issues that I felt worthy of writing down.
What I did at first to apply my zoom:
- I enclosed my canvas in a ScrollViewer
- I apply a scale [...]

Continue reading » 3 Comments

[Silverlight 2, C#] KeyDown Events not being caught???

Short and simple [although it took me awhile to figure out], an element must have focus to receive a keydown event.
The KeyDown event is a bubbling event. This means that if multiple KeyDown event handlers are registered for a sequence of objects connected by parent-child relationships in the object tree, the event is received by [...]

Continue reading » 1 Comment

Please excuse the change of blog appearance

I’ve been playing around with Wordpress themes and customizing them to better express myself, so over the next little while this page may look very different from day to day as I test things out to see if I like them.

Continue reading » No comments

[Silverlight, C#] Using Static Resources in the code behind…

Tags:

So this one is actually fairly simple, but I had to look it up.  If you have resources in your UserControl xaml that you would like to access in your code behind simply access it via the FrameworkElement.Resources dictionary:
My resource:

<UserControl.Resources>
<LinearGradientBrush x:Key="HeaderBrush"
StartPoint="0.03,0.02" EndPoint="1,0.01"
SpreadMethod="Pad" ColorInterpolationMode="SRgbLinearInterpolation" >
[...]

Continue reading » 1 Comment

Silverlight Gradient Maker

Tags:

I bumped into this handy little Silverlight App which will generate the code to create nice gradients from an easy GUI color picker. I find this really handy since I don’t use Blend [although I probably should be] but I want to make some “somewhat” pretty looking user control backgrounds.
http://www.markbetz.net/sl/gradient/

Continue reading » 1 Comment