This is more for my own reference, but here are some really good links I found to information about using the Silverlight Testing framework available to us.
Unit testing Basics [Jeff Wilcox]Excellent Step by Step [Jeff Wilcox] MSDN Download and InfoBasic Asynchronous Step by Step
I am probably abusing the framework with the way I have setup [...]
Archive for December, 2008
[Silverlight 2] Unit Testing
[Silverlight] Silverlight Spy – Awsome Visual Tool
While googling some random problem I was having, I bumped into this amazing [and free!] tool built by firstfloorsoftware which allows you to inspect any Silverlight application embedded in a given page.
The Explorer presents XAP Package, Isolated Storage, Application Styles, the UI Automation tree and the UI element structure of a Silverlight application. Explore the [...]
[C#] Creating Custom Dependency Properties
Oh! I’m so excited… I think I actually got this to work for me
Please note that this is for creating simple DependencyProperties… I am not creating an attached property here.
I have a custom user control called GraphicGrid which consists of multiple line elements that draw up a grid. I also have a [...]
[C#] Loading embedded XAML files into a project
I was looking for a way to load in a XAML file into my project; I wanted to be able to create a nice looking element without having to build it up dynamically in the C# code, and without having to download the XAML file from a server as I have been doing in some [...]
[Silverlight 2, C#] Make a dashed border "move" [animate]
I was looking to make my newly dashed border on my rectangle look like it was “moving” [as you see commonly in some applications when selecting an item].
To do this I created a doubleanimation on the “StrokeDashOffset” property of the Rectangle.
<UserControl.Resources>
<Storyboard x:Name="LassoAnimation">
<DoubleAnimation
Storyboard.TargetName="lasso"
[...]
[Silverlight, C#] Create a simple dashed border
It is simple to set a dashed border of any shape [in my case I was setting a Rectangle border] … simply set the StrokeDashArray property.
StrokeDashArray = “[Length of dash],[Length of gap], …”
You can repeat the dash/gap pairs to create different patterns on the same stroke.
XAML:
<Rectangle … StrokeDashArray="5.0, 2.0" />
C#:
[...]
