IdentityConverter and .net 4.0

IdentityConverter and .net 4.0

Old forum URL: forums.lhotka.net/forums/t/9121.aspx


Curelom posted on Wednesday, June 23, 2010

Do we still need the IdentityConverter in .net 4.0?  I seem to remember reading somewhere about some changes in WPF that would negate the need for this converter.

RockfordLhotka replied on Wednesday, June 23, 2010

I believe you are right. If I remember correctly, there's a new binding property you can set in the binding expression to get the desired behavior.

My understanding is that they weren't going to fix the issue outright, because that could cause backward compat issues. So instead they added some property you can set to tell binding to do the right thing.

(obviously I lost track of the details of that issue, or I'd have a more definite/detailed answer...)

Curelom replied on Wednesday, June 23, 2010

I found a previous post with a link

http://karlshifflett.wordpress.com/2009/05/27/wpf-4-0-data-binding-change-great-feature/

Looks like this is taken care of with System.ComponentModel.INotifyPropertyChanged

RockfordLhotka replied on Wednesday, June 23, 2010

Oh good - so they did take the breaking change - kudos for them then!

Copyright (c) Marimer LLC