Page view counter

In Silverlight, Tags are just strings...

[Updated with trivial, off-topic comment (at bottom of post) on 5/26]

Tim Binkley-Jones sent in a Tip of the Day that custom attached properties make a superior choice to Tags because, in Silverlight, Tags can only be strings.

This is not what I've been saying, but he is right; I was wrong.

He provides this excellent blog entry in which he explains the problem and the solution: custom attached properties.

ParthianShot

His Parthian Shot: "A custom attached property is the tool of a Silverlight/WPF developer.  Not as clumsy or random as a Tag, but an elegant tool for a more civilized technology."

Ouch.

 

 

 

 

 

 

--- Update 5/26 - Off point bit of personal trivia that explains the picture above --

When I was  a kid with few friends and no social skills, I used to make bizarre lists. Among them were brand names used as generics (yo-yo, fridge, xerox, jello, vaseline, scotch tape, kleenex, etc.) My favorite list was "phrases or words misused because the original is obscure but sounds like something common" I believe I had over 100 at one point

This latter list had on it

Original phrase Phrase it morphed into
Champing at the bit Chomping at the bit
On tenter hooks On tender hooks (interesting image)
Parthian shot Parting shot

Wikipedia: The Parthian shot was a military tactic employed by the Parthians, an ancient Iranian people. The Parthian archers, mounted on light horse, would feign retreat; then, while at a full gallop, turn their bodies back to shoot at the pursuing enemy. The maneuver required superb equestrian skills, since the rider's hands were occupied by his bow, leaving only pressure from his legs to guide his horse.

 

 

Published Monday, May 19, 2008 1:49 PM by jesseliberty

Comments

# re: In Silverlight, Tags are just strings...

"Your father's lightsaber. This is the weapon of a Jedi Knight. Not as clumsy or as random as a blaster. An elegant weapon for a more civilized age."

Monday, May 19, 2008 3:58 PM by jackbond

# re: In Silverlight, Tags are just strings...

2 Arbitrary Monetary Units to the first correct citation for the image and 1 bonus AMU for the misnomer most often attributed to it.

Tuesday, May 20, 2008 9:37 AM by jesseliberty

# re: In Silverlight, Tags are just strings… | My Geek Solutions

Pingback from  re: In Silverlight, Tags are just strings… | My Geek Solutions

# Dew Drop - May 20, 2008 | Alvin Ashcraft's Morning Dew

Pingback from  Dew Drop - May 20, 2008 | Alvin Ashcraft's Morning Dew

Tuesday, May 20, 2008 12:34 PM by Dew Drop - May 20, 2008 | Alvin Ashcraft's Morning Dew

# re: In Silverlight, Tags are just strings??? | My Geek Solutions | My Geek Solutions

Pingback from  re: In Silverlight, Tags are just strings??? | My Geek Solutions | My Geek Solutions

# re: In Silverlight, Tags are just strings??? | My Geek Solutions … | My Geek Solutions

Pingback from  re: In Silverlight, Tags are just strings??? | My Geek Solutions … | My Geek Solutions

# Conversion Conversation

In Tag, you are not it I mistakenly said you need an IValueConverter so that the xaml parser could convert the string "Divide" into the enum value Operator.Divide.  (I must've been too busy trying to find a clever Parthian Shot.)

IValueConv

Thursday, August 07, 2008 9:42 AM by exotribe