Created
June 4, 2021 22:04
-
-
Save minons1/d91e4038bf14ac8678a13b2ef8638bec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Xamarin.Forms; | |
namespace AmazingAwesomeApp | |
{ | |
public partial class MainPage : ContentPage | |
{ | |
public MainPage() | |
{ | |
InitializeComponent(); | |
} | |
bool x = true; | |
void Handle_Clicked(object sender, System.EventArgs e) | |
{ | |
((Button)sender).BackgroundColor = x==true ? Color.Pink : Color.SandyBrown; | |
x = x == true ? false : true; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment