(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Articles

Page  
Items View

  • 0 comments  /  aggregated from  Joe Stegman's WebBlog  on  May 05, 2007 (more than a year ago)   /   original article

    I've posted the CreateFromXAML and Timer sample from my Mix talk.  You can run the sample here and get the source here.  The sample uses the downloader component to retrieve a ZIP archive that contains a set of XAML files.  To do this, in the onLoad event, I kick-off a download of the ZIP archive:

     

      function onLoad(sender, args, root) {       

        // Download big file sender, "assets.zip"

        download(sender, "assets.zip");

      }

     

      function download(host, file) {

        var dl = host.createObject("downloader");

        dl.addEventListener("completed", downloadComplete);

        dl.open("get", file, true);

        dl.send();

      }     

     

    This download is asynchronous and calls the downloadComplete event when finished.  In this event I then use CreateFromXAML to instance the XAML files and then add them to the main Canvas.  I also add an animation timer but talk about that in more detail in the next paragraph:

     

      function downloadComplete(sender, args) {

       

        var main = sender.findName("main");

     

        cfx(main, sender.getResponseText("Camera.xaml"));

        cfx(main, sender.getResponseText("Coffee.xaml"));

        cfx(main, sender.getResponseText("Glasses.xaml"));

        cfx(main, sender.getResponseText("Grass3.xaml"));

        cfx(main, sender.getResponseText("Landscape.xaml"));

        cfx(main, sender.getResponseText("Popcan.xaml"));

       

        // Show first

        main.children.getItem($idx).visibility = "Visible";

        

        // Start timer

        var timer = sender.findName("timer");

        timer.addEventListener("completed", timerCompleted);

        timer.begin();

      }

     

    Finally, I setup an animation timer to cycle through the newly created instances.



  • 0 comments  /  aggregated from  Joe Stegman's WebBlog  on  May 05, 2007 (more than a year ago)   /   original article

    I’m a few days late but finally getting around to posting my Mix session samples and source.  The first sample is of a front-end I built for MSN video.  The sample is available online here with the source here.  Here’s a screen shot of the sample:

     

    Video Search screen shot
     

     

     

  • 0 comments  /  aggregated from  Joe Stegman's WebBlog  on  May 05, 2007 (more than a year ago)   /   original article

    The Mix sessions are available on-line here.  For Silverlight sessions, I’d recommend starting with the following:

     

    V 1.0 Sessions:

     

    ·         Celso Gomes: Building Rich Web Experience with Silverlight and Microsoft Expression Studio for Designers

    ·         Mike Harsh: Deep Dive on Silverlight Media Integration

    ·         Brad Abrams, Chris Knowlton, James Clarke: Creating and Delivering Rich Media and Video on the Web with Silverlight, Microsoft Expression Studio, and Windows Server Codename "Longhorn"

    ·         Joe Stegman: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

     

    V 2.0 Sessions:

     

    ·         Jamie Cool: Building Silverlight Applications Using .NET (Part 1 of 2)

    ·         Jamie Cool, Nick Kramer: Building Silverlight Applications Using .NET (Part 2 of 2)

  • 0 comments  /  aggregated from  Michael's Blog  on  Aug 14, 2007 (more than a year ago)   /   original article

    Rob Bagby, MSDN Developer Evangelist, will present Silverlight 1.0 on Wednesday, 15th August at 11:00 AM Pacific Time (US & Canada).

    In this session, we present an overview of Microsoft Silverlight 1.0. We discuss everything from how to set up your development and JavaScript programming environments to the relationship between Silverlight 1.0 and Microsoft ASP.NET AJAX.

    Register online at Microsoft Events; the level is 200.

  • 0 comments  /  aggregated from  Michael's Blog  on  Aug 10, 2007 (more than a year ago)   /   original article

    A great post about some Silverlight performance tips: Silverlight: A few thoughts on minimizing CPU usage:

    The first two suggestions will have the most drastic improvement on the performance of your Silverlight application, and can affect CPU usage, framerate, and application responsiveness.

    1. IsWindowless=false is faster
    2. Opaque Background is faster
    3. Read full article...

    An there is an MSDN article about Animation Performance Tips.


Page