March, 2008

  • DaveDev

    Where to get my Finserv Devcon content - DeepZoom, Silverlight and other Expression goodness.


    Thanks to everyone who attended the Financial Developers Conference this week we had an amazing turnout.  It was great meeting a lot of you face to face and I really enjoyed the discussions.


    I've gotten a lot of requests around the session I gave - especially the DeepZoom and Silverlight 2 pieces.  I'd like to apologize to those that were not able to see it, we ran out of space in the room the first day and a logistics snag prevented us from doing a repeat session on day two. 

    So with that in mind I am going to do two things... 

    First I will be posting the slides and code from the session to my blog.  Update - grab all the content here as well as an overview of what is in the zip.

    Second I will be doing a Screencast of the DeepZoom pieces that will walk through both how I demoed it as well as how I created it.  I'll go step by step from downloading the software to making the image matrix and coding it.  I'll also do a second Screencast that covers the Expression pieces we did with the video player and devcon logo insertions.  I'll touch on some things we ran out of time to show too like how you can easily publish all of this to Silverlight Streaming.  I'll post them up to Channel9 when done.

    Also, here are the links I mentioned you may find useful:

    Devs4Devs "Silverlight - What, Where and How" Video

    • This one will take you through the “What, Where and How?” of Silverlight showing you step by step how to get started.

    Devs4Devs "SharePoint - Making Sense of it All" Video

    • Takes you step by step through the history of SharePoint, what it is today, how to development for it and what tools to use.  Also shows how to use other technologies like Silverlight inside a webpart.

    Silverlight Links and Resources

    Wicked Code - Silverlight Tips, Tools and Tricks

    Financial Services OBA Component Library Info

    Direct Download Link to Silverlight 2 Retail Financial Services Demonstrator

    Silverlight Blueprint for SharePoint


    User Experience in the Enterprise

    • Video of the session from Boston Remix
    • Article that covers most of the topics


  • DaveDev

    Creating Amazing User Experiences on the Microsoft Platform - available for download now!


    As previously mentioned here I will be posting all my material from the Financial Developers Conference session online. 


    You can now grab the Powerpoint here.

    Grab the Source Code here.

    Here is a breakdown of what you will find in the zip file.


    • This is the project where I showed how easy it was to add Ajax too an existing ASP.NET Website using VS2008.
    • Two pieces of code to to watch for here.  First is the UpdateProgress control, this is what enabled us to throw up a message when we simulated server traffic.  To simulate server traffic just put the thread to sleep for a few seconds.  I did this in the Button click event but you can do it anywhere really.
          <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                  Loading, Please Wait...
           protected void Button1_Click(object sender, EventArgs e)


    • This project showed a sample of creating a new Silverlight 2.0 application using the templates in VS2008.  We covered how to create a mirror shadow on an image (to make it look like glass) a simple storyboard animation and then how to add video as a brush to an element.  This is something that is very easy to do in XAML and has some great effects.  You'll see in the code we create a MediaElement for the video and then just apply it as a Video Brush on the text foreground.  You could do this for any element really, even your buttons or listboxes. =)
        <MediaElement Height="152" HorizontalAlignment="Right" Margin="0,0,25,28"     VerticalAlignment="Bottom" Width="178" x:Name="myVid" Source="Bear.wmv" Visibility="Visible" Opacity="0"/>
        <TextBlock Height="59" HorizontalAlignment="Left" Margin="45,0,0,52" x:Name="myText" VerticalAlignment="Bottom" Width="203" 
    Text="USING VIDEO" TextWrapping="Wrap" FontSize="24" > <TextBlock.Foreground> <VideoBrush SourceName="myVid"/> </TextBlock.Foreground> </TextBlock>


    • This project showed how we can easily use timers now in our code behind in Silvelright 2.0.  The old days of using a Storyboard to keep track of time and fire off events are slowing fading.  Thanks to Tim Sneath for the idea from his excellent hands on lab.  Basically we create a new Dispatch Timer and every time it fires off its Tick event we change the color of the button text.
                timer= new DispatcherTimer();
                timer.Interval = new TimeSpan(0, 0, 2);
                rng = new Random();
                timer.Tick += new EventHandler(timer_Tick);
            void timer_Tick(object sender, EventArgs e)
                Byte[] colors=new byte[3];
                btnClick.Foreground=new SolidColorBrush(Color.FromArgb(255,colors[0],colors[1],colors[2]));


    • This project is the DeepZoom project.  I did not include the image output from DeepZoom Composer due to size constraints as well as the Heores mp3 file due to copyright.  I will be posting a screencast very shortly that will take you step by step how to build your own.  The Deep Zoom image itself is just a MultiScaleImage element declared in the XAML.  The mp3 I played was a declared as a MediaElement and then I just added an event handler to capture keyboard input off the control itself.  I used W for play, S for pause and X for stop.  The actual handling of the mouse to Zoom and Pan was done via the "Nerd Silverlight" code snippets the amazing guys at IdentityMine posted here.  Other than that I just formatted the control itself to be a little bit smaller than 1024x768 so when I went into full screen IE mode the illusion all played out nicely so it looked like a Powerpoint.
           <Grid x:Name="LayoutRoot" Background="White">
            <MultiScaleImage x:Name="myZoom" Width="1014" Height="766" 
    Source="http://localhost:49862/TestDepth_Web/ClientBin/FinServHeroes/info.bin" Cursor="Hand"
    MouseLeftButtonDown="myZoom_MouseLeftButtonDown" MouseLeftButtonUp="myZoom_MouseLeftButtonUp" MouseMove="myZoom_MouseMove" /> <MediaElement x:Name="mp3Heroes" Source="http://localhost:49862/TestDepth_Web/ClientBin/Heroes.mp3" AutoPlay="False" /> </Grid>
            public Page()
                this.KeyDown += new KeyEventHandler(Page_KeyDown);
                myZoom.KeyDown += new KeyEventHandler(myZoom_KeyDown);
            void Page_KeyDown(object sender, KeyEventArgs e)
            void CheckMusic(KeyEventArgs e)
                switch (e.Key)
                    case Key.W:
                    case Key.S:
                    case Key.X:


    • This was the sample AJAX project we did where we applied a Shadow Extender to the button and some CSS. 


    • This is the project where I showed how to add video to an existing ASP.NET Web Application using the new Silverlight AJAX controls.  We also went in and modified the XAML for the player skin and added a DevCon logo animation that fired off when the Canvas was loaded.  This showed how easy it is to fire off events in XAML directly using Triggers and the ability to create rich animation using Expression Blend.  Thanks to Brad Abrams for the original idea and inspiration behind this.  Brad also did a really awesome session at Boston Remix on using Video in your Web Applications.  Check it out here.
    <Storyboard x:Name="myLogoSpin"/>
            <EventTrigger RoutedEvent="Canvas.Loaded">
                    <Storyboard x:Name="spinMyImg">
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" 
    Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/> <SplineDoubleKeyFrame KeyTime="00:00:04" Value="1"/> <SplineDoubleKeyFrame KeyTime="00:00:05" Value="0"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image"
    Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"> <SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/> <SplineDoubleKeyFrame KeyTime="00:00:04" Value="361.077"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard> </EventTrigger> </Canvas.Triggers>


    • This project was originally part of Kevin Moore's WPF Bag-O-Tricks.  What I did for the session was just create a new Blend Project and import most of the XAML.  The great thing about this demo is it shows a really slick animation based on mouse movement without any code behind.  It is done entirely in XAML using triggers.  Check it out!

    Feel free to email me with any questions.  I plan to have the Deep Zoom and Video Editing screencasts done shortly and will post the links up here so stay tuned.

  • DaveDev

    New Devs4Devs Video released! Silverlight - What, Where and How?



     SilverlightPart2-a SL3

    This one is all about Silverlight, one of my favorite topics. =) I'll cover why I think it is so important, where the platform is headed and why you should be checking it out if you haven't already. If there is one thing I see time and time again in talking with people it is the confusion out there around why we created Silverlight. I hear things like.. "To compete with Flash".. "To take over the web with windows!".. or "You mean another web technology, but I just learned AJAX!"

    My hope is that after watching this video you will have a clear understanding of where the Microsoft Platform is heading when it comes to NextWeb and presentation technologies as well as how we got there. There has been a lot of great new technology and tools that have just come out in the past few months. Stuff that will really change the way you think and work with user experiences and I try to touch on that. At the end, you should also feel comfortable creating Silverlight content in both VS2008 and Blend and how you can use it in your projects today. I know I definitely had a blast coding with it. =)

    Some of the topics covered:

    • - Why Silverlight? What is Microsoft up to?
    • - Web Development today - the need for User Experience
    • - What is this XAML stuff? WPF?
    • - Good Overview and hands on with Expression Blend
    • - What you need to get started today and where you can get it. Does it cost anything?
    • - 1.0, 1.1, 2.0 - Is this stuff even done? Should I wait?
    • - Demos sprinkled throughout to help reinforce concepts
    • - I take you step by step in creating your first Silverlight application.
    • - Storyboards, images, setting properties, firing/capturing events, using the VS2008 Tools, even adding Ink support.
    • - Just for giggles I also show how easy it is to put the new control inside a Vista Gadget.
    • - Lots of links to additional resources and where you can get more help.

    Check them out on Channel9 here:






    Don't forget to stop by the Devs4Devs group on Facebook. With a couple hundred members now it is a great way to meet developers from all over the world including your local Microsoft folks!


  • DaveDev

    New Devs4Devs Video - A Step By Step Guide to Silverlight DeepZoom


    It's out, go grab it!


    Technorati Tags:
Page 1 of 3 (11 items) 123