Contents tagged with silverlight

  • Silverlight Server Configuration

    I went to throw a small Silverlight sample application up on a web site to show to a client yesterday and found out the hard way that although it is primarily a client-side technology, it doesn't "just work" when you put the files up on the server.  My first attempt was to just put the necessary bits on a static file server that has ASP.NET but doesn't have an easy way for me to configure virtual roots.  Unfortunately, the project I was using (in Visual Studio) was configured to use an ASPX test project with its own web.config and /bin folder, neither of which worked outside of the application root.  So I figured perhaps I could just get the test page to work as a .htm file, … more

  • Extract Control for ASP.NET in Visual Studio

    I've been posting about some feature requests for ASP.NET/Visual Studio, so here's one more in that thread. One nice feature of Blend is the ability to select a chunk of XAML and choose to "Extract User Control".  The result works very nicely, creating the separate control and inserting the reference to that control into the original XAML document.  It would be very cool if ASP.NET had this same notion, wherein one could select a chunk of ASPX markup and choose "Extract User Control" and have it create the .ascx file for you and insert the reference to that control into the original page. Another nice addition to take this another step further would be the ability to convert an … more

  • Silverlight Rehab

    Check out Dan Fernandez, Adam Kinney, and others in this very funny 5 minutes video about Silverlight Rehab on more

  • MVC Source Code Available

    The ASP.NET MVC library's source code has been made available on CodePlex, ScottGu announced today.  The project itself is still very much a work in progress, but with this you should be able to get a much better idea of how everything is laid out and working.  I think it's great the Microsoft is being this transparent with their development efforts, and the amount of community feedback they are accepting and acting on with this project is outstanding.  For a variety of legal reasons they are not accepting patches to the code directly, but that doesn't mean that reproduced bugs and even blog entries noting changes you'd like to see will not be used to improve the … more

  • Silverlight 2 Beta 1 Installation Tips

    BradleyB has some great tips for troubleshooting installation problems with Silverlight 2 Beta 1, released at MIX last week.  I'm trying to avoid posts that don't do much more than link to someone else's blog, but in this case I was running into issues with my own Silverlight 2 upgrade and Brad's post had one of the things that I needed to get going.  In my case, for some reason the first time I tried to install it didn't even prompt for media but it failed and the log indicated it needed something from VS2008.  The second time, it did prompt me for the VS2008 disc, and once I pointed it at the disc location (via DAEMON Tools of course), it proceeded without a hitch.  … more

  • Silverlight Hyperlink

    Playing with Silverlight and needed a simple way to redirect the page.  This isn't built-in yet but probably will be.  For now, you can call out to the page's script, and for this since I don't want to rely on the page having any particular function defined, I'm just using Eval() and passing in what I need.So, in a button MouseLeftButtonDown() handler, I've got:HtmlPage.Window.Eval("document.location.href='" + url + "';");*Update* - This is in fact built in:HtmlPage.Window.Navigate(new Uri(urlString));// orHtmlPage.Window.Navigate(new Uri(urlString), targetString);// orHtmlPage.Window.Navigate(new Uri(urlString), targetString, … more

  • Visual Studio XAML Editing Tip

    So I'm working in XAML in Visual Studio 2008 and it has some nice statement completion features now, like automatically quoting my attributes for me (cool!).  When there's an item it knows, like Orientation="Horizontal|Vertical" it will give me a dropdown and after selection, put the cursor after the closing double quote, as you would expect, like this (the _ represents the cursor): <StackPanel Orientation="Vertical"_ However, if you edit a field that doesn't have a limited set of options, like Width, you don't get this behavior, so you're trapped inside of the double quotes: <StackPanel Orientation="Vertical" Width="30_" None of the standard keys within reach of a touch typist … more

  • Olympics With Silverlight

    I missed this last week, but it appears that the 2008 Olympics in China will be made available online via Microsoft Silverlight.  Every minute of every event will be available on-demand.  Read more about it on Soma's blog. Obviously, this is a pretty major win for Microsoft as it tries to get penetration of Silverlight on as many browsers as possible.  Millions of people will use this service to view the Olympics, and the result should be a huge increase in adoption of Silverlight this summer.  Kudos, Microsoft. more

  • Microsoft Download Center - Silverlight Beta

    Microsoft has a new Download Center on their site which is currently in Beta, being built entirely in Silverlight.  Check it out - it looks largely like a web page but the whole thing seems to be a Silverlight canvas.  I'm not sure if this is the way I would go when it comes to integrating Silverlight into web applications, since one of the immediate disadvantages of this design is loss of discoverability by spiders and search engines.  However, it does show how you can do some pretty rich things with the user interface within the browser. more

  • Silverlight 2.0 Is Coming

    ScottGu today announced what many of us have been wondering and hoping would happen with regard to the next shipping version of Silverlight, which is that it will in fact be dubbed 2.0 rather than 1.1.  My personal feeling on this is that it's a very smart move, expecially given the long period of time between the releases (which most people did not realize when 1.0 Beta and 1.1 Alpha were previewed earlier this year at MIX) and the huge difference in the capabilities of these two platforms.  I'm very much looking forward to Silverlight 2.0 and the many goodies it will bring, especially the ability to code everything in C#, with some decent UI controls, and LINQ and data … more

  • Silverlight Detection and Installation

    Tim Sneath just posted some tips for optimizing the Silverlight install experience for your site's end users.  I've noticed many people on mailing lists and forums discussing (lamenting) the fact that Silverlight's install process requires the user to leave the site they're on, but this is not the case.  Silverlight supports two modes of installation: direct and indirect.  Direct means the installer launches directly from the website the user is visiting.  Indirect redirects the user to download Silverlight from its source website, after which they can return to the original site.  The inplaceInstallPrompt parameter in the CreateSilverlight.js file controls whether … more

  • Atlanta Silverlight Training

    Shawn Wildermuth is teaching a class on Silverlight 1.0 and 1.1 in Atlanta through Dunn Training.  The three day Silverlight Workshop is being offered July 16-18, August 13-15, and September 17-19.  It looks like it will be a good class, based on the outline provided on the course web site. more