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

Check of Entry is clicked/focused

$
0
0

Hi,

I have some code in which I want to detect which Entry has been selected, if possible I want to do this combined with a Binding so I can use it in my ViewModel. Is it possible to detect this?

<Entry WidthRequest="100" Text="{Binding Text}" Focused="{Binding Entry1IsSelected}">

public bool selected;

public bool Entry1IsSelected{
    get{
        return selected;
    }
    set{
        selected = value;
    }
}

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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