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

Button command fired twice?

$
0
0

Hello,

I have a simple page with a button linked to a command:

<Button Text="ContactWise" Command="{Binding NavigateToPage}" CommandParameter="ContactWise" />

In the "NavigateToPage" command, there's nothing but this code:

Debug.WriteLine("Pressed button")

The problem is that I get that output:

Pressed button
Pressed button

The event seems to be fired twice! Why?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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