WPF set new value to my ListView Progress-Bar column -


i have progress-bar inside listview column:

<listview.resources>     <datatemplate x:key="mydatatemplate">         <grid margin="-6">             <progressbar name="progressbarcolumn" maximum="100" value="{binding progress, updatesourcetrigger=propertychanged}"                       width="{binding path=width, elementname=progresscell}"                       height="18" margin="0" />             <textblock text="{binding path=value, elementname=progressbarcolumn, stringformat={}{0}%}" verticalalignment="center"                    horizontalalignment="center" fontsize="11"  />         </grid>     </datatemplate> </listview.resources> 

this progress-bar binding collection progress property. when work finished , want loop want reset progress-bar value 0 how can ?

make sure progress property in source type implements inotifypropertychanged.

once that, can iterate through collection, reset progress properties 0 , listview should update.


Comments