Skip to content

Instantly share code, notes, and snippets.

@minons1
Created June 4, 2021 22:04
Show Gist options
  • Save minons1/d91e4038bf14ac8678a13b2ef8638bec to your computer and use it in GitHub Desktop.
Save minons1/d91e4038bf14ac8678a13b2ef8638bec to your computer and use it in GitHub Desktop.
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