Wednesday, August 18, 2010

Authorization Sample 303 – Metadata-Aware Authorization

Authorization Sample 303 – Metadata-Aware Authorization


Authorization Sample 303 – Metadata-Aware Authorization

Posted: 18 Aug 2010 02:18 PM PDT

In Authorization Sample 301 I explained the ins-and-outs of the authorization sample and offered a few hints as to how it could be used. In this post, I will show a specific example where I put together an authorized form that responds to metadata on Read More......(read more)

Balder gets donation from NDepend

Posted: 18 Aug 2010 12:59 PM PDT

Today the Balder project was lucky enough to get a donation from NDepend . Yet another tool that will be used to improve the code quality of Balder. Thanks a lot to the people at NDepend for the donation....( read more )...(read more)

Early Bird is Open for the Patterns and Practices Symposium

Posted: 18 Aug 2010 12:48 PM PDT

  I just received my confirmation that I will be presenting at the PnP Symposium being held in Redmond from Oct 18-22, 2010. Here is a ton of information that the PnP team has released about the event as written by Don Smith … The Patterns and Practices...( read more )...(read more)

Balder - 0.8.8.9 very close

Posted: 18 Aug 2010 12:34 PM PDT

Its been a hectic week - but finally most of the pieces are falling into place for the next release. There is only a couple of minor features I want to add before calling it a release. Meanwhile, I've updated the samplebrowser and released it as a sneak...( read more )...(read more)

Fade Into You [Code to easily animate orientation changes for Windows Phone applications now supports fade, too!]

Posted: 18 Aug 2010 09:19 AM PDT

I've already written about my efforts to improve the orientation behavior of Windows Phone applications; while the default behavior of snapping to the new orientation is fast and easy, it lacks a certain amount of panache . So I wrote the AnimateOrientationChangesFrame...( read more )...(read more)

ASP.NET Routing

Posted: 18 Aug 2010 09:40 AM PDT

ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs that are descriptive of the user's action and therefore are more easily understood by users.

Reactive Extensions for .NET ( “stuff happens” )

Posted: 18 Aug 2010 07:17 AM PDT

I've been taking a look at the Reactive Extensions for .NET. It's early days for me at this point but I'm finding what I'm seeing to be really interesting. This is code that's available from the DevLabs; and there are versions for .NET 3.5 Sp1, .NET 4...( read more )...(read more)

WP7: Screen Considerations for Developers

Posted: 18 Aug 2010 12:56 AM PDT

This is part 6 of the Windows Phone 7 series : What is Windows Phone 7 Hardware requirements for Windows Phone 7 Part 1 – Buttons, Screen, Cameras, Keyboards, Wireless, Bluetooth, CPU Hardware requirements for Windows Phone 7 Part 2 – Light...( read more )...(read more)

Exploring List capacities and growth on the Windows Phone

Posted: 17 Aug 2010 06:33 PM PDT

Since the generic .NET list (List<T> documentation) is a pretty common data structure found in phone apps, I figured it was worth a few minutes to direct everyone's attention to how the list and its capacity works on the phone. Unlike desktop...( read more )...(read more)

Early look at the Panorama and Pivot controls for Windows Phone

Posted: 17 Aug 2010 03:58 PM PDT

Check out Jeff Wilcox's blog for a great post introducing the Panorama and Pivot controls for Windows Phone. I'm currently using the Panorama control (yes, one of the advantages to working for Microsoft is early access to stuff that is under development...( read more )...(read more)

Using ChildWindow in Windows Phone 7 Projects

Posted: 17 Aug 2010 10:18 AM PDT

URL : http://wildermuth.com/downloads/wp7childwindow.zip I was following a conversation in Twitter about the use of MessageBox in a WP7 application. I hate MessageBox as it usually looks nothing like the rest of my app. If figured I should try it first...( read more )...(read more)

Windows Phone performance progress bar update: part 2, remember to turn IsIndeterminate off when not needed!

Posted: 17 Aug 2010 02:38 PM PDT

Expanded phone progress bar performance guidance: use an improved template and always toggle IsIndeterminate when not needed....( read more )...(read more)

Tuesday, August 17, 2010

“Unplugged” online chat with me this Wednesday

“Unplugged” online chat with me this Wednesday


“Unplugged” online chat with me this Wednesday

Posted: 16 Aug 2010 06:24 AM PDT

I just got back from my trip to India and the UK last week – and will be returning to more regular blogging shortly.  This Wednesday (August 18th) I'm going to be doing another online LIDNUG chat session .  The chat will be from 10:00am to 11:30am Pacific Time.  I do these chats a few times a year and they tend to be pretty good.  Attendees can submit any questions they want to me, and listen to me answer them live via LiveMeeting.  You can learn more about it here and join the chat and ask questions at the appropriate time with this link . Hope to get a chance to chat with some of you there! Scott P.S. In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com...(read more)

WCF RIA Services Part 5 - Metadata and Shared Classes

Posted: 16 Aug 2010 02:49 PM PDT

This article is Part 4 of the series WCF RIA Services: Getting Started with WCF RIA Services Querying Data Through WCF RIA Services Updating Data Through WCF RIA Services WCF RIA Services and MVVM Metadata Classes and Shared Code in WCF RIA Services Validating...( read more )...(read more)

Storing and playing media on Windows Phone 7

Posted: 16 Aug 2010 10:32 PM PDT

In talking with a friend about some Windows Phone 7 and Silverlight stuff recently. He was giving me some great feedback about a few things (all of which I've passed along). One of the things was what I felt was a common task that might exist in the mobile...( read more )...(read more)

Monday, August 16, 2010

Debugging Silverlight with Visual Studio and Firefox

Debugging Silverlight with Visual Studio and Firefox


Debugging Silverlight with Visual Studio and Firefox

Posted: 16 Aug 2010 10:27 AM PDT

Suppose you use Firefox as your default web browser and you are a Silverlight developer using Visual Studio. You may have been frustrated at times in being able to get the debugger to attach to your breakpoints. You've triple-checked that you are in debug...( read more )...(read more)

DatePicker class

Posted: 16 Aug 2010 11:30 AM PDT

DatePicker is another control that was added in WPF 4.0. Check it out!!

Authorization Sample 302 – Site Map Navigation

Posted: 16 Aug 2010 08:44 AM PDT

In Authorization Sample 301 I explained the ins-and-outs of the authorization sample and offered a few hints as to how it could be used. In this post, I will show a specific example where I put together a Site Map in Silverlight . I wanted to stay fairly Read More......(read more)

Skilled in Silverlight/XNA Game Studio, but out of app ideas for WP7?

Posted: 15 Aug 2010 11:29 PM PDT

Visit Mobile App Match. Join the discussion, connect with end users, and find the resources you need to succeed. It's time to take your skills mobile!

Building a DataGrid Control for Silverlight for Windows Phone - Part 1

Posted: 15 Aug 2010 07:29 PM PDT

Introduction As you probably know there is no DataGrid available under the Silverlight for Windows Phone platform at the moment. One could object that a DataGrid in Windows Phone is not so much requested for a lot of reasons, size of the screen, user...( read more )...(read more)

Windows Client Developer Roundup 037 for 8/16/2010

Posted: 15 Aug 2010 10:39 PM PDT

This is Windows Client Developer roundup #37. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++, XNA , Expression Blend , Surface , Windows 7, Windows Forms,...( read more )...(read more)

Windows Client Developer Roundup 037 for 8/16/2010

Posted: 15 Aug 2010 10:39 PM PDT

This is Windows Client Developer roundup #37. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++, XNA , Expression Blend , Surface , Windows 7, Windows Forms,...( read more )...(read more)

Silverlight Cream for August 15, 2010 -- #926

Posted: 15 Aug 2010 10:38 PM PDT

In this Issue: Michael Washington , Michael Crump , Don Burnett , John Papa , Jeremy Alles , Rob Miles ( -2- ), and David Gadd . From SilverlightCream.com : Silverlight Open File Dialog Behavior (MVVM) Michael Washington has a cool post up on building...( read more )...(read more)

Saturday, August 14, 2010

First Guide to MEF & Silverlight (Part–I)

First Guide to MEF & Silverlight (Part–I)


First Guide to MEF & Silverlight (Part–I)

Posted: 14 Aug 2010 04:58 AM PDT

MEF is a framework to extend your application and was introduced in .Net Framework 4.0 and Silverlight 4.0. Recently I got a chance to look around the MEF with Silverlight. I found it useful in various scenarios and thus thought to do something with MEF...( read more )...(read more)

Microsoft Silverlight 4 and SharePoint 2010 Integration by Packt Publishing : Book Preview

Posted: 14 Aug 2010 11:18 AM PDT

I am more than happy to share that the book which keep me involved so much from past few months,finally got published and also now available on Packt Publishing and Amazon . Yes ! I am one of the Reviewer of this book with my fellow friends Marius Constantinescu...( read more )...(read more)

Silverlight On Mobile : Ink Capabilities on Windows Phone 7

Posted: 14 Aug 2010 05:18 AM PDT

Hope my last post on Charting on Windows Phone 7 went well for you and you must have explore that in depth. Today I am going to talk on Ink capabilities on Windows Phone 7. As you all know, Ink capabilities is nothing new to us, I have already made 2...( read more )...(read more)

More Versioning Fun With Optional Arguments

Posted: 12 Aug 2010 02:26 PM PDT

In my last blog post , I covered some challenges with versioning methods that differ only by optional parameters. If you haven't read it, go read it. If I do say so myself, it's kind of interesting. ;) In this post, I want to cover another very subtle versioning issue with using optional parameters. At the very end of that last post, I made the following comment. By the way, you can add overloads that have additional required parameters. So in this way, you are in the same boat as before. However, this can lead to subtle bugs. Let's walk through a scenario. Imagine that some class library has the following method in version 1.0. public static void Foo( string s1, string s2, string s3 = "v1" ) { Console.WriteLine( "version 1"...(read more)

The Weekly Source Code 56 - Visual Studio 2010 and .NET Framework 4 Training Kit - Code Contracts, Parallel Framework and COM Interop

Posted: 12 Aug 2010 02:07 AM PDT

Do you like a big pile of source code? Well, there is an imperial buttload of source in the Visual Studio 2010 and .NET Framework 4 Training Kit . It's actually a 178 meg download, which is insane. Perhaps start your download now and get it in the morning when you get up. It's extremely well put together and I say Kudos to the folks that did it. They are better people than I. I like to explore it while watching TV myself and found myself looking through tonight. I checked my blog and while I thought I'd shared this with you before, Dear Reader, I hadn't. My bad, because it's pure gold . With C# and VB, natch. Here's an outline of what's inside. I've heard of folks setting up lunch-time study groups and going through...(read more)

Versioning Issues With Optional Arguments

Posted: 10 Aug 2010 10:32 AM PDT

One nice new feature introduced in C# 4 is support for named and optional arguments . While these two features are often discussed together, they really are orthogonal concepts. Let's look at a quick example of these two concepts at work. Suppose we have a class with one method having the following signature. // v1 public static void Redirect( string url, string protocol = "http" ); This hypothetical library contains a single method that takes in two parameters, a required string url and an optional string protocol . The following shows the six possible ways this method can be called. HttpHelpers.Redirect( "http://haacked.com/" ); HttpHelpers.Redirect(url: "http://haacked.com/" ); HttpHelpers.Redirect( "http...(read more)

How to Post Code To Your Blog and other Religious Arguments

Posted: 09 Aug 2010 05:28 PM PDT

If you've got a programming blog, chances are you'll want to post some code snippets. Posting code sounds easy but it's surprisingly tricky if you consider all the ways that people will be reading your blog. There's a number of ways. Here's a few and their pros and cons . Copy Paste from your IDE (like Visual Studio, for example) If I copy paste directly from VS into my editor of choice, Windows Live Writer, I'll get a <pre> section. using System; namespace WindowsGame1 { #if WINDOWS || XBOX     static class Program     {         /// <summary>         /// The main entry point for the application.        ...(read more)

Windows Client Developer Roundup 036 for 8/9/2010

Posted: 09 Aug 2010 03:58 PM PDT

This is Windows Client Developer roundup #36. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++, XNA , Expression Blend , Surface , Windows 7, Windows Forms, Windows Phone and Visual Studio, WCF RIA Services , sometimes even a little jQuery and HTML5. If you have something interesting you've done or have run across, or you blog regularly on the topics included here, please send me the URL and brief description via the contact link on my blog. WPF and Silverlight General WCF RIA Services Part 4 - MVVM (Brian Noyes) WPF: Introducing the MVVM pattern for VB2010 developers - part 7 (Alessandro Del Sole) Unit Testing XAML Data Bindings in Silverlight...(read more)

Optional named parameters work pretty well

Posted: 08 Aug 2010 11:36 PM PDT

Rob has found a use for dynamic: http://blog.wekeroad.com/2010/08/06/flexible-parameters-with-csharp Yay! Let's celebrate! Well, I was a little puzzled because I don't think it quite adds up in the specific example he chose (although please see no aggressiveness here: Rob's a friend; peace!). The idea is to have the same flexibility that a dynamic language can offer in terms of evolution of an API. Here's his original Ruby example: def my_method(args)   thing_one = args["thing1"]   thing_two = args["thing2"] end my_method :thing1 => "value", :thing2 = Time.now The idea, which is quite common in dynamic languages, is that instead of passing a list of predetermined parameters in a specific order, you...(read more)

Orchard 0.5 is out

Posted: 05 Aug 2010 02:53 PM PDT

Before I joined Microsoft seven years ago, I had spent a couple of years building a Web CMS. It wasn't open-source unfortunately but the experience convinced me that most public-facing web sites would shortly use some form of CMS. I also forged strong opinions about the right level of component granularity that a CMS must implement. For the last year and a half, I have been fortunate enough to work with a talented small team within ASP.NET and with a growing community from all around the world on building a new Web CMS on top of ASP.NET MVC. Today I am very happy to invite my readers to check out some of the results of that work: earlier this week, we released version 0.5 of Orchard . We are far from being done, but this is an important milestone...(read more)

Web Farm Framework 2.0 beta released!

Posted: 05 Aug 2010 01:09 PM PDT

Last week my team released a super powerful update to our Web Farm Framework project aimed at dramatically simplifying the complexity of managing a Web farm (many computers running one or more Web sites).  Web Farm Framework 2.0 (WFF) allows users to not only setup groups of servers and define routing rules using the built-in routing and load balancing support in ARR , but extends the management support to include many new powerful experiences, including: Automatic platform setup and provisioning of new nodes WFF integrates with Web Platform Installer and will automatically install all the required components to mirror the master node Application replication and synchronization across the Web server farm WFF integrates with Web Deploy and...(read more)

Creating Copies of Attributes

Posted: 05 Aug 2010 09:36 AM PDT

I've been working on a lovely little prototype recently but ran into a problem where my code receives a collection of attributes and needs to change them in some way and then pass the changed collection along to another method that consumes the collection. I want to avoid changing the attributes directly, because when you use reflection to retrieve attributes, those attributes may be cached by the framework. So changing an attribute is not a safe operation as you may be changing the attribute for everyone else who tries to retrieve them. What I really wanted to do is create a copy of all these attributes, and pass the collection of copied attributes along. But how do I do that? CustomAttributeData Brad Wilson and David Ebbo to the rescue! In...(read more)

Announcing the OData Helper for WebMatrix Beta

Posted: 04 Aug 2010 04:05 PM PDT

I'm a big fan of working smarter, not harder.  I hope you are too.  That's why I'm excited by the helpers in WebMatrix which are designed to make your life easier when creating websites.  There are a range of Helpers available out of the box with WebMatrix – you'll use these day in, day out when creating websites – things like Data access, membership, WebGrid and more.  Get more information on the built-in helpers here . It's also possible to create your own helpers (more on that in a future blog post) to enable other people to use your own services or widgets.  We are are currently working on a community site for people to share and publicize their own helpers – stay tuned for more information on that.  Today we...(read more)

Balder - vertex colors

Posted: 14 Aug 2010 12:16 AM PDT

I've been working lately on a demo that is for gaming a lot more realistic than the spinning teapot or box that one sees in the sample browser for Balder. A friend of mine Peter Rosenlund gave me a 3D model of a city that I can use for that (thanks a...( read more )...(read more)

We are Hiring!!

Posted: 10 Aug 2010 02:23 PM PDT

Our team is focused on delivering the ASP.NET framework as well as the tools required for web development including Visual Web Developer Express  and web application development part of Visual Studio. If you have the skills and the passion, want to work on web based technologies, and you're looking for challenge in a fun and fast environment you should consider joining us! The Web Platform and Tools team is looking for smart, highly motivated and experienced testers who can help our team test the next generation of tools and runtime technologies. The candidates who fill these roles are expected to become an expert at building, testing and using web based technologies. The ideal candidate should be a self-starter and have the ability to...(read more)

Silverlight Cream for August 13, 2010 -- #924

Posted: 13 Aug 2010 10:34 PM PDT

In this Issue: Michael Washington , Mickael Chambaud , Colin Eberhardt , Jeff Wilcox , John Papa , Jesse Liberty , Karsten Januszewski , Kunal Chowdhury ( -2- ), and Tim Heuer . Shoutout: David Anson posted his Updated collection of great Silverlight...( read more )...(read more)

Pano versus Pivot: Windows Phone Design Days content available

Posted: 13 Aug 2010 04:13 PM PDT

One of the biggest discussions I started getting into when Windows Phone development was announced to the world was sparked with this single question I posed to our internal Windows Phone developer teams: What is the use case for when you would want to...( read more )...(read more)

Video Introduction to the STL, Part 3

Posted: 13 Aug 2010 05:34 PM PDT

The third part of my video lecture series introducing the Standard Template Library is now available, following Part 1 and Part 2 . Part 3 covers unique_ptr , shared_ptr , and exception handling (briefly). It explains my solution to the container erasure...(read more)

Friday, August 13, 2010

Silverlight TV Upcoming Schedule for August+ 2010

Silverlight TV Upcoming Schedule for August+ 2010


Silverlight TV Upcoming Schedule for August+ 2010

Posted: 13 Aug 2010 11:47 AM PDT

Being that I've just set the Silverlight TV schedule for August and parts of September 2010 I wanted to share it with everyone. We have some great guests who have some awesome content in the lineup over the next month. Check this out! 8/12/2010 – You...( read more )...(read more)

Got my article Sketchflow (II) dev stuff published at Silverlight Show

Posted: 13 Aug 2010 09:04 AM PDT

Second part of this series, it combineas text and short videos... I really have fun recording some of the videos, specially the one I combined Sketchflow with Visual Studio Debugging... yeah that's Developer Rock n Roll ! :) Click here to read the article...( read more )...(read more)

SketchFlow from a developer point of view - Part II - Dev Stuff

Posted: 12 Aug 2010 10:52 PM PDT

This article is Part 2 of the series Sketchflow from a developer point of view: SketchFlow from a developer point of view - Part I - Basics SketchFlow from a developer point of view - Part II - Dev Stuff Intro In the first part of this article we learnt...( read more )...(read more)

SqlResource

Posted: 13 Aug 2010 12:18 AM PDT

The System.Resources.SqlResource namespace provides classes and interfaces that allow developers to create, store, and manage, in SQL Server (2000-2005),
various culture-specific resources used in an web application. Support caching with auto-refresh.

Thursday, August 12, 2010

Silverlight MultiBinding updated, adding support for ElementName and TwoWay binding

Silverlight MultiBinding updated, adding support for ElementName and TwoWay binding


Silverlight MultiBinding updated, adding support for ElementName and TwoWay binding

Posted: 12 Aug 2010 01:11 PM PDT

This blog post describes an update to the Silverlight 4 MultiBinding technique I blogged about a couple of months ago to add support for ElementName binding and TwoWay binding. A few months ago I posted an update to my MultiBinding solution for Silverlight...( read more )...(read more)

Windows Phone 7 in 7 Minutes! (Beta)

Posted: 11 Aug 2010 02:57 PM PDT

Each short, to-the-point video in this series highlights a feature of Windows Phone 7 in less than 7 minutes. This is a series for developers who want to pick up the basics quickly with brief explanations and hands-on examples. Demonstrations and code samples are based on the beta release of the Windows Phone 7 Developer Tools.

Tips & Tricks: How to Sort a Collection by it’s Property Name?

Posted: 11 Aug 2010 04:30 AM PDT

Several times we need to sort a collection based on some property name e.g. we have an Employee collection of type Person. Person consists of EmpId, Name, Age etc. Now as an user, I need to sort the collection in ascending or descending order either by...( read more )...(read more)

Tips & Tricks: How to change the output location of the Silverlight XAP?

Posted: 10 Aug 2010 03:13 AM PDT

In this Tips&Tricks, I will describe about changing the location of the output of your Silverlight application i.e. the .XAP file from it's original "ClientBin" location to a different place. Developers sometimes need to put the XAP file in a specific...( read more )...(read more)

Silverlight Tutorials Chapter 4: Introduction to Controls

Posted: 09 Aug 2010 12:06 PM PDT

In my earlier three chapters of Silverlight Tutorial , I described about " Introduction to Silverlight ", " Introduction to Silverlight Application Development " and " Introduction to Panels ". I got lots of responses & wishes from my readers for...( read more )...(read more)

You Are Already a Windows Phone Developer

Posted: 12 Aug 2010 09:00 AM PDT

It has been said that if you know Silverlight then you are already a Windows Phone 7 developer. Jesse Liberty joins John Papa this week on Silverlight TV to explore that statement and demonstrate the side-by-side creation of both a Silverlight application...( read more )...(read more)

My new home page, rejuvenated [Updated collection of great Silverlight/WPF/Windows Phone Data Visualization resources!]

Posted: 11 Aug 2010 10:46 PM PDT

It's been a few months since I posted my previous collection of Silverlight/WPF Charting links . In the meantime, the April 2010 release of the Silverlight Toolkit was published with support for stacked series and significant performance improvements...( read more )...(read more)

The Silverlight for the Windows Phone 7 Workshop (Beta Edition)

Posted: 11 Aug 2010 02:37 PM PDT

URL : https://agilitrain.com/Workshop/Info/Silverligh... So it seems pretty clear that Windows Phone 7 is taking the Silverlight world by storm (and the XNA people too). But what if you're not already caught up in the Silverlight storm and you want to...( read more )...(read more)

Blend tip: finding default styles using “Edit a Copy”

Posted: 11 Aug 2010 05:43 PM PDT

Here's a super quick tutorial on how to use Blend to find the default control styles and templates....( read more )...(read more)

Silverlight Feature Suggestions Forum

Posted: 11 Aug 2010 04:37 PM PDT

I happened to revisit the current list of feature suggestions in the " Silverlight Feature Suggestions Forum " and was struck by what a great list it is. Here's how the list looks in August, 2010 with Silverlight 4 being the current shipping version ...( read more )...(read more)