Looking for free introductory training on the .NET 3.5 SP1 & ASP.NET MVC? Head over to Jonathan Carter’s blog to get all the details on the .NET 3.5 Enhancements Training Kit RTM. What will you find? Information and links to download a kit that has presentations, demos, and labs covering what’s new in ASP.NET AJAX, ASP.NET Routing, ASP.NET MVC, ASP.NET Dynamic Data, ADO.NET Data Services, ADO.NET Entity Framework, WCF, and Visual Studio 2008 SP1. If you’ve seen any of my 3.5 SP1 or my older "ASP.NET Futures" presentations, then you are already familiar with some of the content in the kit. I used an early release of the kit as the foundation for some of my demos. The kit has come a long way since I used it. I skimmed through everything last week. There is lots of good content in here!
In addition to releasing the .NET Framework 3.5 SP1 last week, which included a number of improvements to WPF, the WPF Codeplex site went public. This site is the home for the WPF Toolkit and WPF Futures.
From the site:
"The WPF Toolkit is a collection of WPF features and components that are being made available outside of the normal .NET Framework ship cycle. The WPF Toolkit not only allows users to get new functionality more quickly, but allows an efficient means for giving feedback to the product team. Many of the features will be released with full source code as well. The Toolkit Roadmap outlines some of the upcoming features we have planned."
The first CTP of the WPF Toolkit includes the new WPF Datagrid. Future releases will include a DatePicker/Calendar and more. Jaime Rodriguez already has 3 posts on the Datagrid:
While I am at it, Jaime has a nice little "cheat-sheet to some of the WPF 3.5 SP1 features" at http://blogs.msdn.com/jaimer/archive/2008/08/15/cheat-sheet-to-some-of-the-wpf-3-5-sp1-features.aspx.
First, let me apologize since I promised to make this recording available almost two months ago. I was trying to get the recording uploaded to the same Live Meeting servers as my other webcasts. Needless to say, I had some challenges. I decided to upload it to Silverlight Streaming. I had to split the presentation into two files since this is a 90 minute presentation and Silverlight Streaming has file size limits.
[Double click the video to view full screen]
[Double click the video to view full screen]
Here are some download links for the webcast:
The sample demonstrating hosting Virtual Earth in a Windows Presentation Foundation (WPF) is old. I have an updated sample. Details about the updated sample are available at http://blogs.msdn.com/devkeydet/archive/2008/06/24/wpf-and-virtual-earth-revisited.aspx. You can also watch a screencast about the updated sample at https://channel9.msdn.com/posts/keydet/Using-Virtual-Earth-in-a-WPF-Application/.
I’ve been having some issues getting my VPC updated to SQL Server 2008 RC0 and Visual Studio 2008 SP1 Beta so I can record a couple screencasts on using Virtual Earth with SQL Server 2008. I swear I read through the readme docs:). However, I could not get Visual Studio 2008 SP1 to install. I’m in the process of building a new VPC. I probably should have done this in the first place since my original VPC had so much beta software installed (including the SQL Server 2008 Feb CTP). Before I tried to install either, I decided review the readme again and do some basic Internet searching before I started. Turns out I should have searched around the first time. There is a known issue related to the order in which you install the two. I found the following entry in the forums:
"SQL Server Compact installation fails when the products are installed in the following order:
1. Install SQL Server 2008 RC0
2. Then install Visual Studio 2008 SP1 Beta
The workaround for the issue is as given below:
1. Install SQL Server 2008 RC0
2. Go to the Add/Remove Programs
3. Uninstall SQL Server Compact 3.5 SP1 Query Tools Beta and SQL Server Compact 3.5 SP1 Beta
4. Install Visual Studio 2008 SP1 Beta
5. Install SQL Server Compact 3.5 SP1 Query Tools Beta (SSCESqlWbTools.msi) from the folder – ServersSetup on the SQL Server 2008 RC0 installation media (CD/DVD/Layout)
6. Go to the Add/remove programs and verify that the following are installed:
a. SQL Server Compact 3.5 SP1 Query Tools Beta;
b. SQL Server Compact 3.5 SP1 Beta;
c. SQL Server Compact 3.5 SP1 Design Tools Beta
The reason for the failure is that SQL Server 2008 RC0 and Visual Studio 2008 SP1 Beta install the same version of SQL Server Compact 3.5 SP1 Beta MSI’s. If SQL Server Compact is already installed on the machine SQL Server 2008 or Visual Studio 2008 SP1 Setup has to skip the installation. There was a bug in the Visual Studio Setup and it has been fixed. The fix will be available in the released version of Visual Studio 2008 SP1"
Hopefully this saves some headaches for anyone who is trying to install both on the same machine.
As promised, here is the screencast for my previous post:
I created the beginnings of a WPF Virtual Earth control. That’s right, one you can just reference, add to your XAML, and start programming against without having to know the dirty underbelly of how it is implemented.
I decided to use the new WPF WebBrowser control that is in the .NET Framework 3.5 SP1. The WPF WebBrowser control is similar to the WinForms WebBrowser. The WPF WebBrowser control has the same z-order as it’s WinForms counterpart, but it eliminates the need for WinForms interop.
The WPF map control allows you to create WPF UserControls and have them appear on top of the map:
In the picture above, the InfoBox, which is the term Virtual Earth uses for the UI that pops up when you hover over a pushpin, is a UserControl that uses WPF databinding to show Title and Description. I am clearly not taking advantage of the power of WPF in this example, but you get the point:). You achieve this through the following code:
You set the InfoBox property of the map to an instance of your UserControl. The map control does all the heavy lifting of positioning/showing/hiding your UserControl. The map control also allows you to add as many UserControls as you’d like through map.AddControl. However, you are responsible for positioning the controls yourself. In the picture below, I have replaced the default Virtual Earth Dashboard control with a UserControl containing WPF buttons:
If the WPF WebBrowser control still has the z-order issue, then how am I rendering WPF content on top of the map? I am using what I have been calling "layered window trickery" for lack of a better term. The map control loads a transparent window with a higher z-order than the window the control is in. The map control places the transparent window itself "covering" the area of the map control. Since the top window is transparent, interaction with the map below behaves as if there isn’t a window over the map control. When a call is made to map.AddControl() or to set the map.InfoBox property, I actually add the UserControl to the top window. As you can imagine there is a bit of repositioning logic for the top window & WPF UI over top of the map. I plan on recording a Channel 9 Screencast walking through the code. If you can’t wait, then you can just download the sample here and dig through it yourself. The control uses new features in the .NET Framework 3.5 SP1. Make sure you install Visual Studio 2008 SP1 Beta before trying to open it. Details here.
digg_url = ‘http://blogs.msdn.com/devkeydet/archive/2008/06/24/wpf-and-virtual-earth-revisited.aspx’;
digg_skin = ‘compact’;http://digg.com/tools/diggthis.js
Thanks to everyone who attended. Sorry about the overflow into the hallways. There was much less dropoff between registration and attendance than we normally see. Some of the content isn’t published yet. Once it is, we’ll make sure to update this post with the appropriate links.
Building Rich Internet Applications Using Microsoft Silverlight 2
Data Access with Language Integrated Query
We also mentioned some downloadable tools that folks were interested in using. Here are the ones I remember:
If I forgot one, please let me know by posting a comment and I will update the post. Thanks!
If you have not heard the announcement elsewhere, Enterprise Library 4.0 from patterns & practices is now available. Martin Bennedik just updated his WPF integration for the Validation Application Block (VAB) to work with Enterprise Library 4.0. He has also added some very convenient features. This is a MUST HAVE if you are looking to use VAB for validation of your business objects/entities. The ErrorProvider from Martin makes surfacing the errors in your WPF UI so easy!
Thanks to everyone who attended! Here are the links to the decks and code for the sessions. I don’t have the content from the LINQ & VSTO sessions yet, but will update this post when I get them. However, I did promise to have a post up this morning.
How Visual Studio Team System 2008 will benefit your organization? – deck
Language Integrated Query (LINQ)
Office Development with VSTO and Office Open XML Format
If you are interested in other content, I have a list of recorded webcasts in My Recorded Webcasts list. There is a session similar to Joel’s LINQ session that covers LINQ to SQL in a little more detail as well as other topics which might interest you. You might want to check out My Screencasts as well.