Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Two ways Binding between a Slider and Entry

$
0
0

I would like to bind an Entry with a Slider and vice versa. I wrote something like this:

<Entry x:Name="myEntry" Text="{Binding Value, Mode=TwoWay}"  BindingContext="{x:Reference slider}"/>
        <Slider x:Name="slider" Maximum="100" Minimum="0"  BindingContext="{x:Reference myEntry}"/>

When I use the slider, the value in the entry is updated, but when I put manually some value in the Entry, the value append a 0 or change to 0. What can be the problem. I am working on android.

Thanks


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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