Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The converter is applied to the property that stores the collection. Therefore, it will only be called if the collection instance itself changes (not if items in the collection are changed). One way around this would be to invalidate the collection when you want it to refresh.</p> <p>The simplest way to invalidate the collection property and cause the converter code to run again would be to <code>null</code> out the collection and reassign it. Another way is to get the <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.bindingexpression.aspx" rel="nofollow noreferrer"><code>BindingExpression</code></a> (via <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.bindingoperations.aspx" rel="nofollow noreferrer"><code>BindingOperations</code></a>) and call <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.bindingexpression.updatetarget.aspx" rel="nofollow noreferrer"><code>UpdateTarget</code></a>. Finally, you could instead bind to a <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionview.aspx" rel="nofollow noreferrer"><code>CollectionView</code></a> (or subclass thereof) and call <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionview.refresh.aspx" rel="nofollow noreferrer"><code>Refresh</code></a> on it.</p> <p>And if you <em>really</em> want to fix the problem cleanly, you could bind to your own implementation of <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.icollectionview.aspx" rel="nofollow noreferrer"><code>ICollectionView</code></a> which does the filtering and raises events as necessary.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload