protected override void Invoke(VisualElement sender) { var backDrop = sender.GetParentOfType <BackDrop>(); if (backDrop != null) { BackDrop.SetShowBackDrop(backDrop, !BackDrop.GetShowBackDrop(backDrop)); } }
private void FloatingButtonClicked(object sender, EventArgs e) { if (!(sender is Button button)) { return; } BackDrop.SetShowBackDrop(SubredditBackDrop, !BackDrop.GetShowBackDrop(SubredditBackDrop)); RunAnimation(button, !BackDrop.GetShowBackDrop(SubredditBackDrop)); }
private void ListItemTapped(object sender, EventArgs e) { var backDrop = (sender as VisualElement)?.GetParentOfType <BackDrop>(); if (backDrop == null) { return; } BackDrop.SetShowBackDrop(backDrop, !BackDrop.GetShowBackDrop(backDrop)); }
private void MenuButtonTapped(object sender, EventArgs e) { if (!(sender is Label label)) { return; } var backDrop = label.GetParentOfType <BackDrop>(); if (backDrop != null) { BackDrop.SetShowBackDrop(backDrop, !BackDrop.GetShowBackDrop(backDrop)); RunAnimation(label, !BackDrop.GetShowBackDrop(backDrop)); } }