IsSynchronizedWithCurrentItem

“IsSynchronizedWithCurrentItem” helps the selector controls synchronize with current item, which confuses me with “selected item”. I really can not see the point of current item, since we have access to the selected item.

MS gives an example of the use of the attribute, saying “suppose that there are two ListBox controls with their ItemsSource property set to the same source. Set IsSynchronizedWithCurrentItem to true on both list boxes to ensure that the selected item in each ListBox is the same.” I tried it. It seemed not to work as it said. Anyway, I don’t quite care about it, since I do not use it at all.

Here what I say about it is the annoying result if you set this attribute of a list box to true. Then no matter if or not the SelectedItem is set to -1, the first item will be always selected, which pissed me off.

I do not like it, therefore I always turn it off.

Advertisements

~ by Martin on October 12, 2007.

6 Responses to “IsSynchronizedWithCurrentItem”

  1. You are an idiot!

  2. I too am frustrated with IsSynchronizedWithCurrentItem. When I toggle control templates, my SelectedValue binding no longer works.

  3. It allows you to create Master-Details pattern witout binding to CurrentItem of the control, but to the items collection only

  4. You can set the IsSynchronizedWithCurrentItem property to true to ensure that the item selected always corresponds to the CurrentItem property in the ItemCollection. For example, suppose that there are two ListBox controls with their ItemsSource property set to the same source. Set IsSynchronizedWithCurrentItem to true on both list boxes to ensure that the selected item in each ListBox is the same.

  5. I am afraid it’s true, you really are an idiot.

  6. At least something is correct with this blog, the idiot part…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: