xamarin.forms - Xamarin Form how slider write in ViewModel after n millisecond -
i ask best approach solving problem. have slider allows change value in viewmodel.
<label text="{x:static resources:resource.frequency}" grid.row="1" grid.column="0" horizontaloptions="start" verticaloptions="center" grid.columnspan="2" /> <vm:sliderx maximum="{binding path=maxcyclicfrequency}" accuratevalue="{binding path=cyclicservosfrequency, mode=twoway}" grid.column="0" grid.row="2" grid.columnspan="3" x:name="sldmaxcyclicfrequency" /> <entry text="{binding path=cyclicservosfrequency, mode=oneway, stringformat='{}{0:f0}hz'}}" isenabled="true" grid.column="2" grid.row="1" keyboard="numeric" unfocused="setmaxcyclicfrequency" x:name="entmaxcyclicfrequency" ></entry>
i wish slider write value in entry in real time, wrote value in viewmodel after n milliseconds since last change of value. avoid writing many times in viewmodel.
it's possible?
thanks
Comments
Post a Comment