DelayBindingUpdate

Topics: Issues / bugs
Mar 12, 2013 at 8:23 AM
Try to use DelayBindingUpdate like in the help
<ListBox x:Name="listBox" ItemsSource="{Binding PersonCollection}" SelectedItem="{Binding SelectedPerson}">
  <i:Interaction.Behaviors>
    <catel:DelayBindingUpdate Property="SelectedItem" UpdateDelay="100" />
  </i:Interaction.Behaviors>
</ListBox>
Get the error:

The property 'Property' does not exist in XML namespace 'http://catel.codeplex.com'.
Coordinator
Mar 15, 2013 at 8:03 PM
That's interesting because it is there in code.

I quickly tested this on a .NET 4.5 project, and it works great. Make sure that you have the right version of System.Windows.Interactivity that ships with Catel.
Mar 21, 2013 at 12:13 PM
Ok. Found the error. It's not Property it is PropertyName. The help is wrong.
Mar 21, 2013 at 1:26 PM
Edited Mar 21, 2013 at 1:36 PM
Hm. Thats my WatermarkTextBox
<catel:WatermarkTextBox  Text="{Binding NewUnitId}"
                         Watermark="Neue ID eingeben">
           <i:Interaction.Behaviors>
                   <catel:NumericTextBox />
                   <catel:DelayBindingUpdate UpdateDelay="5000" PropertyName="Text" />
           </i:Interaction.Behaviors>
</catel:WatermarkTextBox>
I write 1 digit in the TextBox an the Property is set. Why?



Edit: Ok. Delete <catel:NumericTextBox /> and it works. Problem: You can only use 1 behavior. Is that a bug?
Coordinator
Mar 23, 2013 at 12:18 PM
I have updated the docs.

It should be possible to add multiple behaviors.