Skip to content

Instantly share code, notes, and snippets.

@joshayoung
Created July 19, 2021 23:31
Show Gist options
  • Save joshayoung/3939b97e3ecefce832ca3ec67bdff536 to your computer and use it in GitHub Desktop.
Save joshayoung/3939b97e3ecefce832ca3ec67bdff536 to your computer and use it in GitHub Desktop.

Revisions

  1. Josh Young created this gist Jul 19, 2021.
    5 changes: 5 additions & 0 deletions BindingToClicked.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    private void ButtonClickedEvent(object sender, EventArgs e)
    {
    var myViewModel = (MyViewModel)((BindableObject) sender).BindingContext;
    // The rest of the code.
    }