Check of Entry is clicked/focused

FreerkFreerk USMember

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;
    }
}

Best Answer

Answers

Sign In or Register to comment.