Steve Holstad's "the bright lights"

"Just because your voice reaches halfway around the world doesn't mean you are wiser than when it reached only to the end of the bar." - Edward R. Murrow
in

Twitterlight: Silverlight 2.0 (Alpha) Twitter Mashup

 The Twitterlight Coding4Fun article has been published.  I've added some updates, including url link support.  Check it out!

All the source code is available, just make sure you add in references to the C1.Silverlight.dll.

 Enjoy.  - steve

======================================================================= 

I ended up with a bit of bench time this week, so I've been working on two projects here at Clarity: Eating Jimmy Johns like it's going out of style, and immersing myself in Silverlight 1.1/2.0 and the accompanying control toolsets.  Also my foos skills apparently never left.

Lately I've become a regular Twitter user (everyone: "hello, steve"), and was itching to play with the Twitter API, so I set out to create a Silverlight 1.1 mashup.  I also wanted an auto-updating page to use for viewing my tweets, without having to install a desktop app.

Visit the Twitterlight Alpha.

Twitterlight Alpha

My goals here were:

Experience the joy of working around Silverlight cross-domain call prevention.  Btw, different ports in VS count as cross-domain too.  This is achieved by hosting a local web service within your web project, which can in turn call external web services to marshal your Silverlight app its data.  I'm not going to step through how to do this, as tutorials are popping up like crazy on this... although most refer to the "Add Silverlight Link" step as "magic".  This goal was job one for me, because, while it's easy to see the initial draw to the beautiful designs created via XAML/Blend, unless true functionality can be added to these apps, this technology won't spread at the speed I'm hoping it will.

Test drive some emerging control sets.  For starters, I've used ComponentOne's Sapphire Toolset Alpha.  My cube neighbors can vouch for a bit of the learning curve you may experience tackling an alpha release component suite, but all in all I think C1 is doing a really nice job with their controls.  Documentation and forum support are not great, but will come in time; and the coming of Blend support will only make using these controls easier.  For now, I pretty much stuck with creating all C1 controls via C#, as Intellisense helps discover what's available for use.

Deploy a Silverlight app.  Done and done.  The apprehension I felt regarding moving away from good old "localhost" was unnecessary... The only major change required by my solution was to select the Silverlight project's Web Reference to the local web service, and change the "Web Reference URL" property to the new, deployed web service location.  Copy, paste, deploy, foos.

You will need to install the Silverlight 1.1 Alpha September Refresh before running this... browser-wise I've tested in IE7 and Firefox 2.0.  And of course, you'll need a Twitter account!  I'll post the code in the near future for this app, in the meantime I plan to try some other toolsets.

 

Email me at sholstad@claritycon.com with feedback.  I'm available on Twitter at http://twitter.com/steveholstad.

 

Upcoming additions:
  - TinyUrl and hyperlink support
  - Resize to full browser size
  - Search for and follow other Twitterers

 

Some Silverlight 1.1 / ComponentOne Sapphire Gotchas: (Updating as I go)
  - Textboxes would not accept text(!) unless FocusManager.Initialize(this) is called on page load.
  - Tab does not move focus to next control, it moves focus back to the browser (enhanced silverlight keyboard support is on the way)
  - Cannot create password-masked TextBox, and even the workaround posted cannot work due to an alpha bug in C1 control... this explains why I have the horrendous white background/white foreground password textbox in this demo...
  - C1 controls are not functioning as expected in Safari
  - Have heard reports that Vista x64 users can't view Silverlight content

Comments

Sean Alexander said:

Very cool Steve!
# January 8, 2008 7:47 PM

Bernardo Castilho said:

Hi Steve.

I'm glad you like our Sapphire controls. I thought I'd point out that most of the
"gotchas" you listed are actually due to Silverlight itself, and hopefully will be corrected when Microsoft releases the next version (I have forgotten to call FocusManager.Initialize(this) a few times myself!).

The password issue you mentioned has been fixed too, and we added a PasswordTextBox control to the library, which is available for download now.

If you have any requests for additional features or new controls, I'm very interested: bernardoc at componentone.com.

Also, thanks for the interesting info on Twitterlight Alpha.
# January 9, 2008 9:11 AM

Coding4Fun said:

Twitter, using simple SMS length messages, has changed how people stay connected. Here's how to build

# February 24, 2008 4:00 PM

Noticias externas said:

Twitter, using simple SMS length messages, has changed how people stay connected. Here's how to build

# February 24, 2008 4:37 PM

MSDN Blog Postings » Twitterlight: A Silverlight Twitter client said:

Pingback from  MSDN Blog Postings  » Twitterlight: A Silverlight Twitter client

# February 24, 2008 4:53 PM

Holy Moly » Blog Archive » Twitterlight - based on Silverlight said:

Pingback from  Holy Moly  » Blog Archive   » Twitterlight - based on Silverlight

# February 28, 2008 12:09 AM

the bright lights said:

Ok ok, I've bitten the bullet and upgraded the Twitterlight Silverlight Twitter client to Silverlight

# April 1, 2008 9:18 PM