WPF: 3.5 Servicing Release

QuickLink: http://sessions.visitmix.com/, search for Session: T11.

Mix08 Session T11

A lot of what you are currently missing in WPF will come with .net Framework 3.5 “Servicing Release”:

  • Container Recycling for ItemsControl (as base class)
  • DeferredScrolling (in TreeView)
    • don’t know if I will ever use it
  • DataGrid (new)
  • Value formating without value converter
    • you know String.Format()?, use it in a declarative way<g>
  • Effects
    • great looking HW interaction with shaders
  • WriteableBitmap
    • writeable surface which is completly integrated in the WPF rendering pipeline
  • DXInterop
    • Might become a killer feature. (At least team-mediaportal.com would have had some use for it)

Check out Rob Relyea’s session “What is new in WPF 3.5 and Beyond” to get a feeling for all the new features coming. Bits are currently not available for download.

 - tobias

Posted in .net, WPF | Comments Off

WPF: Learn from Silverlight controls

Quicknote: If you are a wpf custom control writer(1), check out the sources for the Silverlight 2.0b1 controls released with mix08 keynote: Silverlight 2.0b1 controls. It is actually a whole vs2008 solution, so you can even “learn” how to create tests against custom controls.

BTW: The new -and right now “Silverlight only”- DataGrid is also included.

- tobias

(1) custom control != user control :D

Posted in .net, WPF | Comments Off

WPF = new technology?

For a lot of us WPF is still a new technology. There are a few commercial applications out there, a few component suites… but it is still not common in the “typical windows app”.

I was looking for blog entries by MSFT staff to find out when the first releases were published. And it looks like it was around 2003/2004. The interesting question would be: When did the development process for WPF start? I don’t know when the whole process started but you can look for when the implementation of the real thing (not counting first test releases) started in BamlRecordReader.cs (available via .net 3.5 source code in VS 2008):

/*****************************************\
*
* File: BamlRecordReader.cs
*
* Purpose: Main class to handle reading a Baml file
*
* History:
* 6/06/01: [...] Created
* [...]
\*****************************************/

Baml is the binary representation of XAML. As there were two different “compiled” versions of XAML (CAML & BAML) available in the first bits of WPF we can assume that the Baml classes were one of the first classes (I don’t know if CAML was used before BAML but as I don’t have any reference source for CAML [CAML was discontinued after the first bits] I cannot event check the dates in there).

Looks like the WPF project was well underway in mid-2001 (to get a feeling: XP was release 10/25/2001).

Was the WPF project already started in the 90′s? If yes, it would be more than interessting to see what’s currently developed within MSFT…

Don’t take the dates for sure. This is just guessing from the external world and could be all wrong.

 - tobias

Posted in .net, WPF | 1 Comment

WPF: Reader SDK public

MSDN reader thumbThe SDK used to create the New York Times Reader (as an example) fomerly known as “Reader SDK” is now available as “Syndicated Client Starter Kit” from windowsclient.net: http://windowsclient.net/wpf/starter-kits/sce.aspx.

Get more information concerning the SDK from Tim Sneath: http://blogs.msdn.com/tims/archive/2008/01/16/we-ve-released-the-news-reader-sdk.aspx

I’ve tried the MSDN reader sample and was fairly impressed. Besides some problems in getting the content to my pc (might be based on problems with the Subscription Center) the reader worked very well and the layout is WPF par excellence.

Posted in WPF | Comments Off

WPF: Custom Controls

Let me save you some time ;) .

I had a hard time of finding all the information I needed to create a really usable wpf custom control (user defined templates etc.). Looks like Charles Petzold had to go the same way and was keen enough to write an article for MSDN mag.

So if you want to go the custom control route, read the article at http://msdn.microsoft.com/msdnmag/issues/08/01/Foundations/default.aspx before you start. It’s quite easy once you got all the information in place.

Another interesting links, even if you are looking for tipps on how to integrate your new control nicely into all the editors out there (VS 2008, Blend, etc.): http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2125195&SiteID=1

BTW: Never set

DataContext = this;

within your custom control just because your Bindings within the generic.xaml template doesn’t work. Take the proper approach:

{Binding RelativeSource={RelativeSource TemplatedParent},Path=XY}

(to be continued…)

Posted in .net, Windows, WPF | Comments Off

Windows Server 2008

Microsoft’s server are getting a personality. As Windows Server 2008 entered ESCROW a few weeks ago it looks like the bits are getting ready. Microsoft.com being one of the largest web pages in today’s Internet (in case of unique hits) one can say that it might be its own testbed for new servers.

Lonesome Server

Check out the new ad from MSFT: Loneserver (http://www.loneserver.com). The interesting part -besides all the fun- is that a build of longhorn was already used in ’05 for hosting parts of Microsoft.com.

Posted in Windows | Comments Off

Update your posters

What would be the first step of getting ready for .net 3.5? 
Correct: Update your posters!

Get rid of the old types & classes posters now and replace it with a freshly printed version 3.5 poster. Even the visualization of the red/green and blue bits has changed so be prepared for the next wave…

 PosterThumb

 Poster download: http://download.microsoft.com/download/4/a/3/4a3c7c55-84ab-4588-84a4-f96424a7d82d/NET35_Namespaces_Poster_LORES.pdf

 Source: http://blogs.msdn.com/pandrew/archive/2007/11/02/announcing-the-net-framework-3-5-commonly-used-types-and-namespaces-poster.aspx.

Posted in .net | Comments Off