Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Binding Delay xaml

$
0
0


How do I set the delay for the slider so that it binds after 500ms?

<Grid><Slider Height="23" HorizontalAlignment="Left" Margin="90,28,0,0" 
                Name="slider1" VerticalAlignment="Top" Width="184" TickFrequency="1" 
                TickPlacement="TopLeft" Minimum="1" Maximum="50" IsSnapToTickEnabled="True"
                Value="{Binding ElementName=textBox1, Path=Text, Mode=TwoWay}"/><TextBox Height="23" HorizontalAlignment="Left" Margin="304,28,0,0" 
                 Name="textBox1" VerticalAlignment="Top" Width="55" 
                 Text="{Binding ElementName=slider1, Path=Value, Mode=TwoWay}" /></Grid>

Tried this but I get an error message.  "The property 'Delay' was not found in the type 'Binding'

Value="{Binding ElementName=textBox1, Path=Text, Mode=TwoWay, Delay=500}"




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>