rss RSS     silverlight rss Silverlight-only RSS     comments rss Comments RSS

Awesome controls are coming for the Silverlight platform

Now that the wait is over and Silverlight 2 is out there in the wild, there’s very little excuse not to be using this awesome Microsoft platform. Easy-to-use controls make fast, easy development possible, and there is a clear roadmap out there now on what all is going on. Last week I was really bunkered ...

Recently posted...

Client-side HTML controls for Silverlight 2

What if you could use and create ASP.NET-like web controls that are 100% client-side, powered by the Silverlight 2 runtime? What if ViewState was a thing of the past? Would you like to cut your web application’s load on your servers from 50 pageviews down to 0? Wouldn’t your users love it if your application ...

Silverlight Unit Test Framework: New features & download for RC0

Enhanced interactive results, more log providers, dynamic test methods and attributes, tag expressions: there’s a whole lot of fun new test-dev-geek candy in the latest Silverlight Unit Test Framework download on the MSDN Code Gallery (download now available; breaking changes here). Here’s a quick look at a few of the top new features in the ...

Silverlight Unit Test Framework: Breaking changes from Beta 1 to Release Candidate

Update your test projects to the first Silverlight Unit Test Framework update in half a year, it should take two minutes to update and get the awesome new features and functionality. The improvements and changes made to the surface area of the test framework and runtime are a good thing. I’ve organized the high-level changes ...

If you can do it in JavaScript, you can do it in managed Silverlight .NET code

Just because you can do something doesn’t mean that you should do something. Just because you can get Quake to run on your iPhone doesn’t mean that’s the best way to do things. But it’s pretty cool! Now that we’re clear on that one, this is the part where I show you that you can ...

Silverlight Unit Test Framework will be updated for the Release Candidate tomorrow

Developers rejoice, ScottGu announced the wide availability to developers everywhere of the Silverlight 2 Release Candidate tonight. There were some changes since the Beta 2 release of Silverlight that require updated unit testing bits. I’ll be releasing an updated drop of the Silverlight Unit Test Framework by the end of the week. It’s more clear ...

Using IELaunchURL in C# to launch a protected mode Internet Explorer 7 window

By popular demand, here’s the C# equivalent of the C/C++ program I posted earlier today. As things work in the Windows native code world, the C# equivalent takes about 80 lines of code (vs 30). Might be the XML comments though. The main method to the program; if the URL is passed in as a ...

Using IELaunchURL to launch and retrieve the PID of a protected mode IE7 window

With the release of Windows Vista, Windows Internet Explorer 7 introduced the Protected Mode feature for having a more secure experience in the browser. More information from one of the original IE Blog posts and the Protected Mode Internet Explorer Reference on MSDN. Earlier today I put together a super simple app to get me ...

Microsoft Silverlight unit test framework now on MSDN Code Gallery

The Silverlight unit test framework’s binaries are now available for download direct from the MSDN Code Gallery. If you already have the test framework libraries, there’s no need to download them again: the bits haven’t changed… yet. http://code.msdn.microsoft.com/silverlightut/ The current release targets Silverlight 2 Beta 2. Along with the binaries, there’s also a set of ...

Quickly resize the Silverlight plugin to zero pixels in size

When I was a test developer on the team that built the HTML DOM bridge feature for Silverlight 2, I often found myself needing to create a tiny, quick application to reproduce an issue. That meant quickly creating projects that used the dynamic test page, and without modifying the TestPage.html. The goal was to resize ...

LINQ follow-up: a little more work was needed

Oops! The code example I had in my LINQ posting yesterday was inaccurate and didn’t actually do anything! That code was from a changeset I was preparing on my machine and it had to go through the gauntlet that is an ironclad code review by Ted Glaza. He made a good catch here, and it’s ...

LINQ really is hot stuff for .NET developers.

8/20 7:28PM Correction: The example OrderBy code below is incorrect. Updated and explained over here. I’m late to the LINQ party. I thought I was good at keeping up with the latest trends and improving my skills. But I never embraced the importance of using LINQ versus learning about LINQ. I’m writing to say that ...

Visual Studio unit testing intro

Visual Studio’s unit testing framework isn’t widely covered in books or in other places, and this makes it tougher for teams to adopt strict test guidelines for their developers. At the end of the day, if you aren’t unit testing from day one of your project, you’re in for a world of hurt down the ...

My Silverlight 2 blog roadmap for Summer ’08

It’s summertime in Seattle, and the warmth throws everything off just a little (and that’s a good thing).  I got a little too much sun waiting 7 hours in line at the University Village Apple Store on Friday to upgrade to an iPhone 3G (16gb model, black color)…  So I’m hiding from the sun today, ...

Mid-July miscellaneous content post

Here’s some random comments I’ve prepared recently.  A few cool Adobe links, a work office location update, then a quick vacation recap.  Probably hardly warrants a dedicated posting, and is thoroughly not Silverlight related (sorry!). Adobe MAX conference mini site, ActionScript 3 stuff The MAX 2008 North America mini site is a fun rich experience. ...

Using a value converter to bind to Visibility in the Silverlight data grid

I received a question a few weeks ago from a customer who was trying to show and hide a button inside a data grid row.  This developer had a boolean property exposed inside the data model that indicated whether an item was in stock; at that time, a “Buy” button should appear. By using a ...

FJCore source available: Client-side JPEG resizing for Silverlight 2 Beta 2

Last year I was amazed by the innovation demonstrated by Fluxify, a neat online utility powered by the managed code version of Silverlight.  The guys at fluxcapacity ported libjpeg to pure managed code, so the end result is: Resize images on the client – yeah, those images that come in through the OpenFileDialog Save bandwidth.  ...

Getting browser screen & window information in a Silverlight 2 app

While working on visual verification and user interface testing support for some Silverlight tests, I came up with this simple file that abstracts out the Firefox/Safari and Internet Explorer property differences.  The browsers all expose this information in one way or another. Although mostly integer values, numbers are returned as doubles to stay in line ...

Silverlight unit test framework download for Silverlight 2 Beta 2

9/15/08 Update: The Microsoft unit test framework now has its own MSDN Code Gallery site, where you’ll find the latest framework releases and other information. http://code.msdn.microsoft.com/silverlightut/ If you’re looking for the latest Silverlight unit test framework download, look no further: I’ve packaged up the binaries and am making them available as a .Zip file download ...

Unit testing templates for Microsoft Silverlight 2 Beta 2

The unit test framework binaries that we released for Silverlight 2 Beta 1 work just fine with Silverlight 2 Beta 2, that was just released today.  However with the updated project file format for Beta 2, I’ve gone ahead and prepared updated templates that you should download and install.  There’s no need at this time ...

Tech-Ed 2008: Building a great Microsoft Silverlight application talk on 6/6/08, 4:30pm in Blue Theater 2

Tech-Ed 2008′s in full swing right now in Orlando, Florida.  I wanted to let anyone in attendance know about an excellent talk coming up on Friday. This year’s developer’s conference is full of exciting news, products, and talks.  With Silverlight 2 Beta 2 coming out soon, including a Go Live license, I’d highly recommend that ...

Dennis Dietrich: Stressing the importance of internationalization

Preface: One thing I’ve been meaning to do on my blog is introduce a number of the team members that I’ve been working closely with, to help give some insight into life inside the Microsoft Developer Division.  This marks the first of hopefully many such introductions. The software industry has shipped excellent products in English, ...

Storing text in the clipboard using Silverlight 2

To provide users the ability to copy permalinks or store other useful information in the clipboard, there aren’t many options for web developers today.  There’s no APIs inside JavaScript to access the clipboard.  Here’s a solution that will at least enable this from your Silverlight 2 app for most of your users. Internet Explorer-only Clipboard ...

Code display: Moving back from screen captures to text

Blog authors have always struggled (well, at least I have!) with the issue of pasting in code samples. In the past I’ve tried a few things, from using Visual Studio to WordPress formatting tools to Windows Live Writer plugins for code.  I settled on using screen captures, with the intention of attaching the code projects ...

Book Review: Pro C# 2008 and the .NET 3.5 Platform

Wow. This book rocks: Pro C# 2008 and the .NET 3.5 Platform, by Andrew Troelsen.  I’d recommend it to anyone that wants to get a lot of meat on 3.5 and down to business.  It’s a massive book and well worth making room for in your office collection.  It’s hard cover. When I picked up ...

Accessing JavaScript arrays using the HTML DOM interop

The documentation on the HTML DOM interoperability feature is definitely a little sparse today, but with the Beta 1 release of Silverlight 2, the APIs are very useful for getting a lot done.  Since we went for parity with JavaScript, it’s a super rich way to interact with existing AJAX controls and the web browser. ...

Homepage “link cloud" application

My new browser start page uses Silverlight to produce a simple link cloud.  By targeting the rich class libraries of .NET that are available in Silverlight 2, the app loads quicker than a server-based solution, is useful, and very simple.  The app I built is a good demonstration of the “zero pixel” Silverlight plugin concept: ...

Unit Testing with Silverlight 2

9/15/08 Update: The Microsoft unit test framework now has its own MSDN Code Gallery site, where you’ll find the latest framework releases and other information. http://code.msdn.microsoft.com/silverlightut/ 1/6/09 Update: Updated templates are available that should be used for the final Silverlight 2 release. Please see the MSDN Code Gallery site and/or this post from October ’08. ...

Silverlight unit test project templates

In my introductory post about the Silverlight unit testing work we’ve done, I also included some Visual Studio project and item templates that make it easier to add tests to your own apps and class libraries.  Here’s that information in one place: Test Project SilverlightTestProject.zip (8.8k) To install the template, save this file into your ...

Some great Silverlight posts on the DataGrid, HtmlTextBlock, right clickin’, and more

There’s been some sweet blog activity this past week, so in case you aren’t subscribed to all of these blogs, take a look: Using the Silverlight DataGridScott Morrison gets you started using the DataGrid, autogenerating columns are great!  Also useful if you’re new to the data binding in Silverlight. Isolated StorageWilco Bauwer is the developer ...

Video walkthrough of the Silverlight 2 control unit tests

A few weeks back at MIX’08 I took along my $150 Aiptek A-HD camera with the intention of shooting some quick video footage while at MIX and using it to start learning Expression Encoder.  It was a success!  Instead of a thorough trip report, I’m going to walk you through the control source download quickly. ...

Silverlight 2: Introducing Microsoft.Silverlight.Testing

As announced during the MIX’08 keynote by Scott Guthrie, not only are we making available the source code of the Silverlight controls, but we’re also releasing nearly 2,000 unit tests and a unit test framework for the Silverlight runtime.  This is a project I’ve been working on for some time now, so I’m planning on ...

Silverlight 2: Updated HtmlExtensions.cs utility class

I’ve gone ahead and updated the HtmlExtensions class that I previously blogged.  The class is now updated to reflect the new HTML DOM bridge APIs in Silverlight 2.  To be honest, I’d recommend dropping this class as a lot of its functionality (JavaScript eval, alert, and retrieving the <body /> element) are now available within ...

Silverlight 2: MD5 hash string provider implementation

The cryptography services in Silverlight today only include the SH1 algorithm.  That’s quite useful, but throughout the web there is still a significant use of the MD5 algorithm today.  This is a re-post of a managed code implementation of MD5 that has been working great for my Flickr API work. To use this component in ...

Silverlight 2: Download the source, unit tests and unit test framework

The download is now live for the Silverlight 2 controls source code package.  The controls are included in the Silverlight 2 SDK, but if you’re a control developer, interested to learn more about how we implemented our controls, this will serve as a great reference.  There’s also around 2,000 unit tests that target the core ...

Why I’m looking forward to MIX this year

Last year I had the opportunity to attend the MIX conference and I absolutely loved the event.  Brilliant minds from all over the web were walking the halls, the energy level was high, and I think we surprised a lot of people in a great way.  This weekend I’m packing my luggage full of gadgets, ...

Help define, develop and test Microsoft’s rich client platform – join the team!

Have big thoughts about where rich client apps could go? Want to work on a team at Microsoft where everyone has a Mac and a PC? What’s the one feature you wish Silverlight 2 would have? Want a jump start on building sexy web mashups using the latest Silverlight bits? One of the reasons I ...

Starbucks to become chill once again?

Granted a little off topic, but I live in Seattle so if there’s one thing that affects me more than the rain it is the caffeine. Earlier today Starbucks announced that they’re providing free wireless Internet for the first two hours when you use a Starbucks card.  After the last holiday season, my wallet’s full ...

Blog Upgrade

I’m in the process of upgrading my blog and transitioning to use WordPress in order to take advantage of some new features, including enhanced spam protection.  I’ll continue to cross-post between MSDN blogs and my WordPress site, however all discussion will take place on the new site only. The easiest way to make sure that ...

Book Review: Pro JavaScript Design Patterns by Harmes and Diaz

I recently completed a relatively quick read through Pro JavaScript Design Patterns by Ross Harmes and Dustin Diaz (ISDN-13 978-1590599082). It’s definitely one of those books that I’m happy to have read through; I’m always amazed by the flexibility of JavaScript as a language, and believe anyone not familiar with the intricacies of object-oriented JavaScript ...

« Previous PageNext Page »