WPF 3.5 SP1 sources are now available!

The Reference Source Code Center team has just announced that the WPF 3.5 SP1 sources are now publicly available.  You can read about it here, http://blogs.msdn.com/rscc/archive/2008/10/22/wpf-sources-for-net-framework-3-5-sp1-are-available.aspx.  The post also has pointers on how to setup and where to post any issues or feedback.  Enjoy!


WPF 3.5 SP1 Feature: BindingGroups with Item-level Validation

Motivation Before 3.5 SP1, the binding validation system worked with only one binding at a time.  What made this difficult in some scenarios was when validation was required on a set of bound objects.  Some typical examples that come to mind are a form of data items that are submitted all at once or a…


.NET 3.5 SP1 and WPF DataGrid CTP are out now!

UPDATE: the WPF DataGrid v1 has just released.  For more information, see this post.  The information below still applies, but the new post contains the additional features as well as an updated sample.  Check it out! As you might have heard, .NET Framework 3.5 SP1 and Visual Studio 2008 SP1 are out today! There are a ton…


WPF 3.5 SP1 Feature: Alternating Rows

So what else is new in WPF 3.5 SP1?  Here is a smaller but pretty nice feature for you ItemsControl fans: alternating rows. This alternating row feature has been added in WPF 3.5 SP1 to make it easier to set properties like Background, Foreground, etc. on the rows of an ItemsControl in alternating fashion.  Two…


Using IEditableCollectionView with dynamically generated GridViewColumns

I recently got a question on how to implement IEditableCollectionView with GridViewColumns that are dynamically created.  Creating the columns dynamically actually doesn’t really have a big impact on IEditableCollectionView implementation.  I have a sample below that dynamically adds columns but really does not differ all that much from the first sample.  Side note: There are…


WPF 3.5 SP1 Feature: Non-live Scrolling

So far for the new WPF 3.5 SP1 features, I’ve surveyed Item Container Recycling, Data Formatting, and IEditableCollectionView.  Next on my list is Non-live Scrolling! What is it? Before 3.5 SP1, the WPF ScrollViewer only supported live scrolling, which means the view of content the ScrollViewer contains updates immediately as the user moves the ScrollBar.  For…


WPF 3.5 SP1 feature: IEditableCollectionView

Motivation  A CollectionView is your interface into manipulating a collection of data items in an ItemsControl.  Common tasks with this view often involve applying sorting, filtering, and grouping.  In lieu of supporting a DataGrid control, transactional adding/editing/removing is an essential feature for data manipulation and a new view has been added in WPF 3.5 SP1…


New WPF 3.5 SP1 feature: Data Formatting (with Binding.StringFormat)

Background Formatting data can be a pretty cumbersome task in WPF.  To illustrate with a very simple example, let’s say I want to display the dollar value of some item in a TextBlock: <StackPanel>   <TextBlock Text=”Choose a number:”></TextBlock>   <ComboBox Name=”myComboBox” SelectedIndex=”0″>     <ComboBoxItem>       <sys:Double>168.361</sys:Double>     </ComboBoxItem>     <ComboBoxItem>…


More WPF 3.5 SP1 resources

Here are some pretty comprehensive resources on the new features in our WPF 3.5 SP1 release. Scott Guthrie’s blog post on installation issues, features in Visual Studio and the .NET framework. Jossef Goldberg’s blog post on performance improvements in WPF. Greg Schechter’s blog post on new graphics features in WPF. I’ll be posting about some more…


Recycling that Item Container

Item container recycling is a one of the many new features in SP1.  I’m going to talk a little bit about it here. What is it? As a little background, the VirtualizingStackPanel’s virtualization scheme basically works like this: generate containers when needed and throw them away when they are no longer in view.  This does solve…