Dynamically drawing a line in WPF

I just bought "Pro C# 2008 and the .NET 3.5 Platform" 4th Edition by Andrew Troelsen. I like it- it's been an invaluable resource. However, either I gave up too soon or it just wasn't covered in the book as to how to simply programmatically draw a line in C# for a WPF custom control.

I figured out how to do exactly what I needed via this link: http://msdn2.microsoft.com/en-us/library/aa480159.aspx

Here's the gist of it:
Define a Canvas (mine was named "canvas") in your custom control XAML.
In the C# code-behind file, simply do this:
Line line = new Line();
line.X1 = 0;

Thoughts on RIAs: Part 1

So, I've been doing a lot of reading.
Some of what I've come across are people arguing Adobe AIR vs. Microsoft Silverlight- the two are apples to carrots.

What strikes me is this huge gap between Graphic Designers and Application Coders- let's say designers and developers for short. Adobe is trying to bridge that gap with their Flex framework and associated Flex Builder tooling which includes an Eclipse plugin- nice.

A little trouble with my WUSB54GC network adapter

Ok, this was too good not to post.

Foreword: I think Jonaver was polite enough, no problem there, but I found the conversation beyond incredulous. Regardless, I do like the fact that LinkSYS has a live chat 24/7. I had zero wait time. I knew I was being fed a line of bull early on, but kept giving the guy a chance to offer something of technical value. Didn't happen.

----- LinkSYS Live Chat Session Start-----
Jonaver P. (18638): Hi, my name is Jonaver P. (18638). How may I help you?

Attack of the Drupal Spam Bots

Howdy,

I've been very busy with personal stuff lately- I moved. I still need to unpack, but I'm getting there. I apologize for letting things get stale, but hey, it's a hobby.

Sorry, nareman, go post spam links elsewhere.

Seriously, it took me just a week to put this site together at a total cost of $50 per year- you're too lazy and cheap to do that yourself? I suppose it's free to you since your parasitic spam just rides along with my bandwidth and alters the Google ads in your favor. Well, good luck with that.

For the good decent folks out there, be warned that nareman, (aka killerspm@runbox.com) appears to be a site-comment-spammer.

Cygwin: How to Get Started

In this tutorial, you will learn how to install Cygwin.

This is a summary of what will be covered:
(1) Downloading the Cygwin installer.
(2) Installing Cygwin.

Something I wrote a long time ago

When I was younger and confused, I tried to express what I was feeling with music. This is perhaps my best, and most complete attempt. I used a tool called MidiSoft Studio- quite primitive.

Initially I made up the song on the keyboard by playing around on the black keys- the beginning 6 eighth notes, for both hands, are all on black keys. Eventually I started entering each note into the tool via mouse clicks. I didn't have a MIDI device back then although I did have a MIDI capable keyboard- really a shame in hindsight.

Eclipse: How to Get Started

In this tutorial, you will learn how to install and configure Eclipse for advanced development on a typical Windows based PC.

This is a summary of what will be covered:
(1) Downloading Eclipse.
(2) Installing Eclipse.
(3) Creating workspace shortcuts.
(4) Installing updates.
(5) Installing advanced features.

Java: Hello World

In this tutorial, you will learn how to compile and run a very simple Java program using "rocks and sticks" technology.

This is a summary of what will be covered:
(1) Create source file.
(2) Compile source file into class file.
(3) Run class file.
(4) Troubleshooting.

Java: How to Get Started

In this tutorial, you will learn how to install a Java Virtual Machine (JVM) on a typical Windows based PC.

This is a summary of what will be covered:
(1) Downloading a JVM.
(2) Installing a JVM.
(3) Configuring environment variables.
(4) Verifying installation and configuration.
(5) Troubleshooting.

Syndicate content