Welcome to Pete Brown's 10rem.net

First time here? If you are a developer or are interested in Microsoft tools and technology, please consider subscribing to the latest posts.

You may also be interested in my blog archives, the articles section, or some of my lab projects such as the C64 emulator written in Silverlight.

(hide this)

Silverlight Chat Application for CMAP Code Camp

Pete Brown - 11 April 2008

For all of you attending tomorrow's CMAP code camp, here's a sneak peek at what I'll be building in my 10:30 Silverlight 2 and Microsoft Expression session. The session is targeted towards developers, but anyone with an interest in Silverlight or Expression is welcome and encouraged to attend

image

The application has a server piece (the windows forms app) and, in this instance, two Silverlight clients in a chat, actually talking to each other over sockets.

Expression Design

  • Building the chat bubble

Expression Blend

  • Designing the overall UI
  • Creating interesting and easy animations to make the bubbles pop up and fade away

Visual Studio 2008

  • Wiring it all up and just a little bit of sockets grunge for good measure.

The session is all demo and code. You'll leave there with an understanding of how the tools work together, how to do some basic animation in Blend, how to create shapes and glass effects in design, and how to build a Silverlight 2 application.

Source code will be available some time after the code camp.

Hope to see you there!

         
posted by Pete Brown on Friday, April 11, 2008
filed under:          

10 comments for “Silverlight Chat Application for CMAP Code Camp”

  1. Lylesays:
    Is this source code available anywhere? I can only get 1 client connected using localhost, every time i try to connect another client to server it says its already connected. in other words it doesnt go to the onbeginaccept callback, it just skips it. this looks like you have 2clients connected on localhost to server. please help.

    Thanks
  2. Pete Brownsays:
    @Lyle, @Tony

    I have two clients connected to localhost. In Beta 1, your are limited to opening sockets connections on the site of origin only. In addition, there's a reverse DNS lookup to make sure it truly is the site of origin.

    That is a limitation in Beta 1.

    If you want to hit a particular server, you must serve up your app from that server and also use the fully qualified domain name for both the socket connection and the page hit, or use IP address for both.

    I'm not at home at the moment, so don't have the source handy. I don't think the sockets code I did is a good example of using sockets, but I can provide the source if you're interested. If so, click the contact link at the top of the page and let me know.

    Thanks.

    Pete
  3. mskcsays:
    Hi,
    When will the Source Code of this application be available? Atleast give some code, so that, we can understand it...
    Looking forward for your reply with the code...
    Regards,
    mskc
  4. Pete Brownsays:
    Hi All

    There's been enough interest in this that I'm going to put together a post and/or video on it very shortly.

    I was going to wait until the WCF Duplex stuff came out for Silverlight, as I feel that would be a more robust approach, but I'll give you all something with sockets :)

    Stay tuned.

    Pete

Comment on this Post

Remember me

7 trackbacks for “Silverlight Chat Application for CMAP Code Camp”

  1. Christopher Steensays:
    ASP.NET ASP.NET Dynamic Data Preview Available [Via: ScottGu ] Putting ASP.NET Dynamic Data into Context...
  2. POKE 53280,0: Pete Brown's Blogsays:
    Eugene Osovetsky made a pretty exciting announcement yesterday regarding pushing data to Silverlight
  3. Community Blogssays:
    Eugene Osovetsky made a pretty exciting announcement yesterday regarding pushing data to Silverlight
  4. Community Blogssays:
    I've had a number of folks request I provide a walkthrough and/or source code for the chat application
  5. Community Blogssays:
    I've had a number of folks request I provide a walkthrough and/or source code for the chat application
  6. POKE 53280,0: Pete Brown's Blogsays:
    <p>I've had a number of folks request I provide a walkthrough and/or source code for the chat application</p>