[Silverlight 2, C#] Creating Custom Events

Category: Silverlight, c#

I’d just like to say, that figuring out how to create custom events has completely opened my eyes. For awhile I was struggling with having multiple classes that seemed to need information from each other, but something seemed wrong with having to keep [or pass in reference to] the “other” class.
Enter events… by creating [...]

Continue reading » 3 Comments

[C#, VS2008] Adding an external file to a project [Link]

Category: Uncategorized

Something like this should be so simple, but the way to do it eluded me. I had a shared file [version.cs] that I wanted to share with multiple projects. I would do my normal method of adding an existing item to the project and then selecting that file, however, every time I did [...]

Continue reading » 2 Comments

[Silverlight 2, C#] Animating a GridLength

Category: Data Binding, Silverlight, Uncategorized, c#, cloning, technical difficulties, testing, wpf

It’s been awhile I’m afraid and my topics to post on have been piling up!  My work hard drive crashed on me and I’ve spent a lot of time just getting things back up to speed.  Anyhoot… feels good to be back.
This last timebox at work I shifted onto a different project – but still [...]

Continue reading » No comments

[Visual Studio 2008] Intellisense Not/Stopped Working?

Category: technical difficulties

So I had a frustrating last week which involved my work hard drive blowing up and having to spend countless hours trying to get everything back up installed and running again. After all that [and things still aren't 100% back to normal] I find that *BAM* my Visual Studio 2008 intellisense isn’t working. [...]

Continue reading » No comments

[C#] Creating Custom Exceptions

Category: c#, testing

I’ve found it useful in the past to create my own custom exceptions for my application to throw and catch – especially if I want to handle that exact exception in a specific manner. Figured I’d jot down the syntax used to set one up here since I’ve looked it up once or twice.

// [...]

Continue reading » No comments

[C#] “DateTime.CompareTo” vs. “Less than / Greater than operators”

Category: c#

I have seen in examples and I have used in my code the DateTime.CompareTo method to compare two dates with each other. This all works fine and dandy but then my project manager asked why I wasn’t using the less then or greater then operator since it seems a little easier to read. [...]

Continue reading » No comments

[Silverlight 2] Chart Builder

Category: Silverlight, technical difficulties

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

Category: Silverlight, technical difficulties

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

Category: Silverlight, c#

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”

Category: Silverlight, technical difficulties

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